1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Add renderContext parameter to wiki.renderTiddler

This commit is contained in:
Jeremy Ruston 2013-03-25 10:42:14 +00:00
parent bdd47feff9
commit f427339a78

View File

@ -525,10 +525,10 @@ Parse text from a tiddler and render it into another format
outputType: content type for the output
title: title of the tiddler to be rendered
*/
exports.renderTiddler = function(outputType,title) {
exports.renderTiddler = function(outputType,title,renderContext) {
var parser = this.parseTiddler(title),
renderTree = new $tw.WikiRenderTree(parser,{wiki: this});
renderTree.execute();
renderTree.execute(renderContext);
return renderTree.render(outputType);
};