1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Added support for macros that are dependent on all other tiddlers

This commit is contained in:
Jeremy Ruston 2012-01-06 21:08:15 +00:00
parent 82a83bd714
commit c716cdce20
2 changed files with 4 additions and 1 deletions

View File

@ -351,6 +351,7 @@ WikiStore.prototype.installMacros = function() {
}
},
list: {
dependantAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
params: {
type: {byName: "default", type: "text", optional: false},
template: {byName: true, type: "tiddler", optional: true},

View File

@ -114,7 +114,9 @@ var parseMacroCall = function(w,name,paramString) {
if(macro) {
var args = new ArgParser(paramString,{defaultName: "anon"}),
insertParam = function(param,name,arg) {
if(param.type === "tiddler") {
if(param.dependantAll) {
w.dependencies = null;
} else if(param.type === "tiddler") {
if(arg.evaluated) {
w.dependencies = null;
} else {