mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 17:47:32 +00:00
Refactored macro parameter parsing
So that it happens during parsing, not compilation. This will enable us to do the dependency tracking during parsing, and not wait until compilation time
This commit is contained in:
@@ -314,15 +314,18 @@ store.renderTiddler("text/html",templateTitle,tiddlerTitle)
|
||||
WikiStore.prototype.renderTiddler = function(type,title,asTitle) {
|
||||
var tiddler = this.getTiddler(title),
|
||||
fn = this.compileTiddler(title,type);
|
||||
if(asTitle) {
|
||||
var asTiddler = this.getTiddler(asTitle);
|
||||
return fn(asTiddler,this,utils);
|
||||
} else {
|
||||
if(!tiddler.renditions[type]) {
|
||||
tiddler.renditions[type] = fn(tiddler,this,utils);
|
||||
if(tiddler) {
|
||||
if(asTitle) {
|
||||
var asTiddler = this.getTiddler(asTitle);
|
||||
return fn(asTiddler,this,utils);
|
||||
} else {
|
||||
if(!tiddler.renditions[type]) {
|
||||
tiddler.renditions[type] = fn(tiddler,this,utils);
|
||||
}
|
||||
return tiddler.renditions[type];
|
||||
}
|
||||
return tiddler.renditions[type];
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
WikiStore.prototype.installMacros = function() {
|
||||
|
||||
Reference in New Issue
Block a user