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:
@@ -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;
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user