mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 17:11:38 +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.args,
|
||||||
(this.renderer ?? {}).args,
|
(this.renderer ?? {}).args,
|
||||||
(this.root ?? {}).args)
|
(this.root ?? {}).args)
|
||||||
console.log(' :', this, this.renderer)
|
//console.log(' :', this, this.renderer)
|
||||||
return this.location },
|
return this.location },
|
||||||
'testDirect!': Object.assign(
|
'testDirect!': Object.assign(
|
||||||
function(){
|
function(){
|
||||||
@ -1266,7 +1266,7 @@ object.Constructor('Page', BasePage, {
|
|||||||
this.args,
|
this.args,
|
||||||
(this.renderer ?? {}).args,
|
(this.renderer ?? {}).args,
|
||||||
(this.root ?? {}).args)
|
(this.root ?? {}).args)
|
||||||
console.log(' :', this, this.renderer)
|
//console.log(' :', this, this.renderer)
|
||||||
return this.location },
|
return this.location },
|
||||||
{energetic: true}),
|
{energetic: true}),
|
||||||
|
|
||||||
@ -1931,7 +1931,7 @@ module.System = {
|
|||||||
this.args,
|
this.args,
|
||||||
(this.renderer ?? {}).args,
|
(this.renderer ?? {}).args,
|
||||||
(this.root ?? {}).args)
|
(this.root ?? {}).args)
|
||||||
console.log(' :', this, this.renderer)
|
//console.log(' :', this, this.renderer)
|
||||||
return this.location },
|
return this.location },
|
||||||
'testAction!': Object.assign(
|
'testAction!': Object.assign(
|
||||||
function(){
|
function(){
|
||||||
@ -1939,7 +1939,7 @@ module.System = {
|
|||||||
this.args,
|
this.args,
|
||||||
(this.renderer ?? {}).args,
|
(this.renderer ?? {}).args,
|
||||||
(this.root ?? {}).args)
|
(this.root ?? {}).args)
|
||||||
console.log(' :', this, this.renderer)
|
//console.log(' :', this, this.renderer)
|
||||||
return this.location },
|
return this.location },
|
||||||
{energetic: true}),
|
{energetic: true}),
|
||||||
|
|
||||||
|
|||||||
32
pwiki2.js
32
pwiki2.js
@ -14,20 +14,34 @@
|
|||||||
* testAction - page action
|
* testAction - page action
|
||||||
* testAction! - energetic page action
|
* testAction! - energetic page action
|
||||||
* examples:
|
* 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
|
* // root path: /System/testAction:a:b:c
|
||||||
* await pwiki.get('/path/testDirect:x:y:z').raw
|
* await pwiki.get('/path/testDirect:x:y:z').raw
|
||||||
* - x y z -- not seen at all (XXX)
|
* .args - empty
|
||||||
* - a b c -- seen .renderer and .root
|
* .renderer.args - a b c
|
||||||
|
* .root.args - a b c
|
||||||
* await pwiki.get('/path/testAction:x:y:z').raw
|
* await pwiki.get('/path/testAction:x:y:z').raw
|
||||||
* - x y z -- seen local
|
* .args - x y z
|
||||||
* - a b c -- seen .renderer and .root
|
* .renderer.args - a b c
|
||||||
|
* .root.args - a b c
|
||||||
* await pwiki.get('/path/testDirect:x:y:z').text
|
* await pwiki.get('/path/testDirect:x:y:z').text
|
||||||
* - x y z -- seen .renderer
|
* .args - empty
|
||||||
* - a b c -- seen .root
|
* .renderer.args - x y z
|
||||||
|
* .root.args - a b c
|
||||||
* await pwiki.get('/path/testAction:x:y:z').text
|
* await pwiki.get('/path/testAction:x:y:z').text
|
||||||
* (same as for testDirect+text)
|
* .args - empty
|
||||||
* - x y z -- seen .renderer
|
* .renderer.args - x y z
|
||||||
* - a b c -- seen .root
|
* .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 CACHE need to explicitly prevent caching of some actions/pages...
|
||||||
* XXX FEATURE tags and accompanying API...
|
* XXX FEATURE tags and accompanying API...
|
||||||
* - add tags to page -- macro/filter
|
* - add tags to page -- macro/filter
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user