diff --git a/pwiki/page.js b/pwiki/page.js index 3148d1b..e99cd1b 100755 --- a/pwiki/page.js +++ b/pwiki/page.js @@ -1258,7 +1258,7 @@ object.Constructor('Page', BasePage, { this.args, (this.renderer ?? {}).args, (this.root ?? {}).args) - console.log(' :', this, this.renderer) + //console.log(' :', this, this.renderer) return this.location }, 'testDirect!': Object.assign( function(){ @@ -1266,7 +1266,7 @@ object.Constructor('Page', BasePage, { this.args, (this.renderer ?? {}).args, (this.root ?? {}).args) - console.log(' :', this, this.renderer) + //console.log(' :', this, this.renderer) return this.location }, {energetic: true}), @@ -1931,7 +1931,7 @@ module.System = { this.args, (this.renderer ?? {}).args, (this.root ?? {}).args) - console.log(' :', this, this.renderer) + //console.log(' :', this, this.renderer) return this.location }, 'testAction!': Object.assign( function(){ @@ -1939,7 +1939,7 @@ module.System = { this.args, (this.renderer ?? {}).args, (this.root ?? {}).args) - console.log(' :', this, this.renderer) + //console.log(' :', this, this.renderer) return this.location }, {energetic: true}), diff --git a/pwiki2.js b/pwiki2.js index 8f251f5..9e51053 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -14,20 +14,34 @@ * testAction - page action * testAction! - energetic page action * examples: +* // NOTE: .text is redered via _view and thus is on a different +* // level to .raw... +* // XXX for .text and .parse(..), the action is called twice... * // root path: /System/testAction:a:b:c * await pwiki.get('/path/testDirect:x:y:z').raw -* - x y z -- not seen at all (XXX) -* - a b c -- seen .renderer and .root +* .args - empty +* .renderer.args - a b c +* .root.args - a b c * await pwiki.get('/path/testAction:x:y:z').raw -* - x y z -- seen local -* - a b c -- seen .renderer and .root +* .args - x y z +* .renderer.args - a b c +* .root.args - a b c * await pwiki.get('/path/testDirect:x:y:z').text -* - x y z -- seen .renderer -* - a b c -- seen .root +* .args - empty +* .renderer.args - x y z +* .root.args - a b c * await pwiki.get('/path/testAction:x:y:z').text -* (same as for testDirect+text) -* - x y z -- seen .renderer -* - a b c -- seen .root +* .args - empty +* .renderer.args - x y z +* .root.args - a b c +* await pwiki.get('/path/testDirect:x:y:z').parse('@include(.)') +* .args - empty +* .renderer.args - a b c +* .root.args - a b c +* await pwiki.get('/path/testAction:x:y:z').parse('@include(.)') +* .args - empty +* .renderer.args - a b c +* .root.args - a b c * XXX CACHE need to explicitly prevent caching of some actions/pages... * XXX FEATURE tags and accompanying API... * - add tags to page -- macro/filter