1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 15:30:47 +00:00

Added tagging option to list macro

This commit is contained in:
Jeremy Ruston 2012-06-13 09:11:19 +01:00
parent 59b23a3ab9
commit fb5d7793ab

View File

@ -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);
}