mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-08 06:43:49 +00:00
WikiStore cleanups
This commit is contained in:
parent
733e93de63
commit
1e02389f46
@ -189,7 +189,6 @@ WikiStore.prototype.listTiddlers = function(type,template,emptyMessage) {
|
|||||||
return "<span>Listing!</span>";
|
return "<span>Listing!</span>";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
argOptions: {defaultName:"type"},
|
argOptions: {defaultName:"type"},
|
||||||
@ -255,7 +254,6 @@ WikiStore.prototype.listTiddlers = function(type,template,emptyMessage) {
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
WikiStore.prototype.parseText = function(type,text) {
|
WikiStore.prototype.parseText = function(type,text) {
|
||||||
var processor = this.textProcessors[type];
|
var processor = this.textProcessors[type];
|
||||||
if(!processor) {
|
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) {
|
WikiStore.prototype.renderTiddler = function(type,title,asTitle) {
|
||||||
var parser = this.parseTiddler(title),
|
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() {
|
WikiStore.prototype.installMacros = function() {
|
||||||
this.macros = {
|
this.macros = {
|
||||||
echo: {
|
echo: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user