mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Added support for macros that are dependent on all other tiddlers
This commit is contained in:
parent
82a83bd714
commit
c716cdce20
@ -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},
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user