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

WikiStore cleanups

This commit is contained in:
Jeremy Ruston 2012-01-04 19:44:38 +00:00
parent 733e93de63
commit 1e02389f46

View File

@ -189,7 +189,6 @@ WikiStore.prototype.listTiddlers = function(type,template,emptyMessage) {
return "<span>Listing!</span>";
};
/*
argOptions: {defaultName:"type"},
@ -255,7 +254,6 @@ WikiStore.prototype.listTiddlers = function(type,template,emptyMessage) {
*/
WikiStore.prototype.parseText = function(type,text) {
var processor = this.textProcessors[type];
if(!processor) {
@ -278,7 +276,9 @@ WikiStore.prototype.parseTiddler = function(title) {
};
/*
Render a tiddler to a particular MIME type. Optionally render it with a different tiddler as the context. This option is used to render a tiddler through a template as store.renderTiddler("text/html",tiddler,template)
Render a tiddler to a particular MIME type. Optionally render it with a different tiddler
as the context. This option is used to render a tiddler through a template as
store.renderTiddler("text/html",templateTitle,tiddlerTitle)
*/
WikiStore.prototype.renderTiddler = function(type,title,asTitle) {
var parser = this.parseTiddler(title),
@ -290,16 +290,6 @@ WikiStore.prototype.renderTiddler = function(type,title,asTitle) {
}
};
WikiStore.prototype.compileTiddler = function(type,title,asTitle) {
var parser = this.parseTiddler(title),
asTitleExists = asTitle ? this.tiddlerExists(asTitle) : true;
if(parser && asTitleExists) {
return parser.compile(type,parser.children,this,asTitle ? asTitle : title);
} else {
return null;
}
};
WikiStore.prototype.installMacros = function() {
this.macros = {
echo: {