Merge branch 'master' of github.com:flynx/pWiki

This commit is contained in:
Alex A. Naanou 2022-09-20 11:26:42 +03:00
commit f5d2b47d00
2 changed files with 9 additions and 0 deletions

View File

@ -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')

View File

@ -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:
* <store>.onUpdate(path, data?)
* <store>.onCreate(path, data?)