mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
investigating arg propagation paths...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
07e1e3a346
commit
97b8e2c86a
@ -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}),
|
||||
|
||||
|
||||
32
pwiki2.js
32
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user