1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-11-12 21:43:01 +00:00

Rename render function of macros

This commit is contained in:
Jeremy Ruston
2012-01-30 20:04:47 +00:00
parent 350ad5bf3b
commit ddfa6732a6
12 changed files with 16 additions and 16 deletions

View File

@@ -373,13 +373,17 @@ WikiStore.prototype.renderTiddler = function(targetType,title,asTitle,options) {
return null;
};
WikiStore.prototype.installMacro = function(macro) {
this.macros[macro.name] = macro;
};
/*
Executes a macro and returns the result
*/
WikiStore.prototype.renderMacro = function(macroName,targetType,tiddler,params,content) {
var macro = this.macros[macroName];
if(macro) {
return macro.handler(targetType,tiddler,this,params,content);
return macro.render(targetType,tiddler,this,params,content);
} else {
return null;
}
@@ -443,10 +447,6 @@ WikiStore.prototype.refreshDomNode = function(node,changes,renderer,tiddler) {
}
};
WikiStore.prototype.installMacro = function(macro) {
this.macros[macro.name] = macro;
};
exports.WikiStore = WikiStore;
})();