mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-24 02:27:19 +00:00
Added wiki.renderTiddler() function
This commit is contained in:
parent
71ec12a784
commit
d126605479
@ -262,11 +262,17 @@ Options are:
|
||||
defaultType: Default MIME type to use if the specified one is unknown
|
||||
*/
|
||||
exports.renderText = function(outputType,textType,text,options) {
|
||||
var renderer = this.parseText(type,text,options);
|
||||
var renderer = this.parseText(textType,text,options);
|
||||
renderer.execute([]);
|
||||
return renderer.render(outputType);
|
||||
};
|
||||
|
||||
exports.renderTiddler = function(outputType,title) {
|
||||
var renderer = this.parseTiddler(title);
|
||||
renderer.execute([],title);
|
||||
return renderer.render(outputType);
|
||||
};
|
||||
|
||||
/*
|
||||
Install macro plugins into this wiki
|
||||
moduleType: Plugin type to install (defaults to "macro")
|
||||
|
Loading…
Reference in New Issue
Block a user