Added support for macros that are dependent on all other tiddlers

print-window-tiddler
Jeremy Ruston 2012-01-06 21:08:15 +00:00
rodzic 82a83bd714
commit c716cdce20
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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},

Wyświetl plik

@ -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 {