mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 18:10:09 +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 {
|
} else {
|
||||||
var data = await page.data
|
var data = await page.data
|
||||||
data =
|
data =
|
||||||
typeof(data) == 'function' ?
|
data instanceof types.Generator ?
|
||||||
//data
|
|
||||||
await data()
|
await data()
|
||||||
|
: typeof(data) == 'function' ?
|
||||||
|
data
|
||||||
: 'text' in data ?
|
: 'text' in data ?
|
||||||
data.text
|
data.text
|
||||||
: null
|
: null
|
||||||
@ -2461,6 +2462,11 @@ module.System = {
|
|||||||
Time to render: ${time}ms <br>
|
Time to render: ${time}ms <br>
|
||||||
<hr>
|
<hr>
|
||||||
${text}`},
|
${text}`},
|
||||||
|
|
||||||
|
// XXX REMOVE WHEN NOT NEEDED...
|
||||||
|
TEST: function(){
|
||||||
|
console.log('TEST')
|
||||||
|
return 'TEST' },
|
||||||
|
|
||||||
// XXX EXPERIMENTAL -- page types...
|
// XXX EXPERIMENTAL -- page types...
|
||||||
isAction: async function(){
|
isAction: async function(){
|
||||||
|
|||||||
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...
|
* XXX BUG: count does not appear to affect /Test/list/generator and /Test/list/static...
|
||||||
* ...do we need to support this???
|
* ...do we need to support this???
|
||||||
* XXX BUG: parser:
|
* XXX BUG: parser:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user