1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-08 05:46:05 +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 // Server syncing isn't implemented yet
return []; return [];
}, },
tagging: function(wiki,tiddlerTitle) {
return wiki.getTiddlersWithTag(tiddlerTitle);
},
filter: function(wiki) { filter: function(wiki) {
// Filters aren't implemented yet // Filters aren't implemented yet
return []; return [];
@@ -61,7 +64,7 @@ exports.executeMacro = function() {
} }
var handler = handlers[this.params.type]; var handler = handlers[this.params.type];
handler = handler || handlers.all; handler = handler || handlers.all;
var tiddlers = handler(this.wiki); var tiddlers = handler(this.wiki,this.tiddlerTitle);
if(this.classes) { if(this.classes) {
attributes["class"] = this.classes.slice(0); attributes["class"] = this.classes.slice(0);
} }