mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-04-10 20:56:39 +00:00
Added tagging option to list macro
This commit is contained in:
parent
59b23a3ab9
commit
fb5d7793ab
@ -29,6 +29,9 @@ var handlers = {
|
||||
// Server syncing isn't implemented yet
|
||||
return [];
|
||||
},
|
||||
tagging: function(wiki,tiddlerTitle) {
|
||||
return wiki.getTiddlersWithTag(tiddlerTitle);
|
||||
},
|
||||
filter: function(wiki) {
|
||||
// Filters aren't implemented yet
|
||||
return [];
|
||||
@ -61,7 +64,7 @@ exports.executeMacro = function() {
|
||||
}
|
||||
var handler = handlers[this.params.type];
|
||||
handler = handler || handlers.all;
|
||||
var tiddlers = handler(this.wiki);
|
||||
var tiddlers = handler(this.wiki,this.tiddlerTitle);
|
||||
if(this.classes) {
|
||||
attributes["class"] = this.classes.slice(0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user