mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 20:10:03 +00:00
Fixed macro execution in renderTiddler and renderMacro
This commit is contained in:
parent
b64e44d1af
commit
a65713650e
@ -292,7 +292,9 @@ WikiStore.prototype.renderTiddler = function(targetType,tiddlerTitle,templateTit
|
||||
{target: tiddlerTitle, template: templateTitle},
|
||||
null,
|
||||
this);
|
||||
macro.execute();
|
||||
// Execute the macro
|
||||
macro.execute([],this.getTiddler(tiddlerTitle));
|
||||
// Render it
|
||||
return macro.render(targetType);
|
||||
};
|
||||
|
||||
@ -300,9 +302,9 @@ WikiStore.prototype.installMacro = function(macro) {
|
||||
this.macros[macro.name] = macro;
|
||||
};
|
||||
|
||||
WikiStore.prototype.renderMacro = function(macroName,params,children,tiddler) {
|
||||
WikiStore.prototype.renderMacro = function(macroName,params,children,tiddlerTitle) {
|
||||
var macro = Renderer.MacroNode(macroName,params,children,this);
|
||||
macro.execute([],tiddler);
|
||||
macro.execute([],this.getTiddler(tiddlerTitle));
|
||||
return macro;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user