mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-07 22:50:02 +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: {
|
list: {
|
||||||
|
dependantAll: true, // Tiddlers containing <<list>> macro are dependent on every tiddler
|
||||||
params: {
|
params: {
|
||||||
type: {byName: "default", type: "text", optional: false},
|
type: {byName: "default", type: "text", optional: false},
|
||||||
template: {byName: true, type: "tiddler", optional: true},
|
template: {byName: true, type: "tiddler", optional: true},
|
||||||
|
@ -114,7 +114,9 @@ var parseMacroCall = function(w,name,paramString) {
|
|||||||
if(macro) {
|
if(macro) {
|
||||||
var args = new ArgParser(paramString,{defaultName: "anon"}),
|
var args = new ArgParser(paramString,{defaultName: "anon"}),
|
||||||
insertParam = function(param,name,arg) {
|
insertParam = function(param,name,arg) {
|
||||||
if(param.type === "tiddler") {
|
if(param.dependantAll) {
|
||||||
|
w.dependencies = null;
|
||||||
|
} else if(param.type === "tiddler") {
|
||||||
if(arg.evaluated) {
|
if(arg.evaluated) {
|
||||||
w.dependencies = null;
|
w.dependencies = null;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user