diff --git a/pwiki/page.js b/pwiki/page.js index 40b44da..a1a78e4 100755 --- a/pwiki/page.js +++ b/pwiki/page.js @@ -911,6 +911,8 @@ object.Constructor('Page', BasePage, { var depends = state.depends = state.depends ?? new Set() + // XXX DEPENDS_PATTERN + depends.add(src) handler = handler @@ -1031,6 +1033,8 @@ object.Constructor('Page', BasePage, { var depends = state.depends = state.depends ?? new Set() + // XXX DEPENDS_PATTERN + depends.add(src) var pages = src ? @@ -1288,6 +1292,8 @@ object.Constructor('Page', BasePage, { && this.actions_inherit_args.has(pwpath.basename(src)) && this.get(pwpath.dirname(src)).path == this.path){ src += ':$ARGS' } + // XXX DEPENDS_PATTERN + depends.add(src) join = _getBlock('join') diff --git a/pwiki2.js b/pwiki2.js index e2160bd..e8ee6ec 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -11,6 +11,9 @@ * ...and need this to work through all the i/o... * ....this might be an argument towards the .title attr, at least * for notes... +* XXX macros: should we add the pattern path to .depends instead of the +* final path... +* ...would also need a fast way to pattern match... * XXX need basic system events: * .onUpdate(path, data?) * .onCreate(path, data?)