mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
6f1e8a6a90
commit
29c08de27c
@ -1756,9 +1756,10 @@ object.Constructor('Page', BasePage, {
|
||||
} else {
|
||||
var data = await page.data
|
||||
data =
|
||||
typeof(data) == 'function' ?
|
||||
//data
|
||||
data instanceof types.Generator ?
|
||||
await data()
|
||||
: typeof(data) == 'function' ?
|
||||
data
|
||||
: 'text' in data ?
|
||||
data.text
|
||||
: null
|
||||
@ -2462,6 +2463,11 @@ module.System = {
|
||||
<hr>
|
||||
${text}`},
|
||||
|
||||
// XXX REMOVE WHEN NOT NEEDED...
|
||||
TEST: function(){
|
||||
console.log('TEST')
|
||||
return 'TEST' },
|
||||
|
||||
// XXX EXPERIMENTAL -- page types...
|
||||
isAction: async function(){
|
||||
return await this.get('..').type == 'action' ?
|
||||
|
||||
13
pwiki2.js
13
pwiki2.js
@ -36,19 +36,6 @@
|
||||
* -
|
||||
*
|
||||
*
|
||||
* XXX BUG /tree/time gives a blank time...
|
||||
* ...problem: actions seem to be called twice, not yet sure why...
|
||||
* for an action:
|
||||
* TEST: async function(){
|
||||
* console.log('TEST')
|
||||
* return 'TEST' },
|
||||
* these call it twice:
|
||||
* await p.pwiki
|
||||
* .get('/moo/TEST').text
|
||||
* await p.pwiki
|
||||
* .get('/moo/TEST')
|
||||
* .parse('@source(.)')
|
||||
* XXX check if this applies to <page>.actions
|
||||
* XXX BUG: count does not appear to affect /Test/list/generator and /Test/list/static...
|
||||
* ...do we need to support this???
|
||||
* XXX BUG: parser:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user