mirror of
https://github.com/flynx/pWiki.git
synced 2025-11-01 03:20:08 +00:00
tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
44f33bf880
commit
3d3b76d914
@ -1027,8 +1027,21 @@ object.Constructor('Page', BasePage, {
|
|||||||
// escapes it from parsing...
|
// escapes it from parsing...
|
||||||
: [body]
|
: [body]
|
||||||
|
|
||||||
|
return function(state){
|
||||||
|
// XXX can we loose stuff from state this way???
|
||||||
|
// ...at this stage it should more or less be static -- check!
|
||||||
|
return Promise.awaitOrRun(
|
||||||
|
this.__parser__.parse(this, ast, {
|
||||||
|
...state,
|
||||||
|
filters: local.includes(this.ISOLATED_FILTERS) ?
|
||||||
|
local
|
||||||
|
: [...outer, ...local],
|
||||||
|
}),
|
||||||
|
function(res){
|
||||||
|
return {data: res} }) }
|
||||||
|
/*/ // XXX ASYNC...
|
||||||
return async function(state){
|
return async function(state){
|
||||||
// XXX can we lose stuff from state this way???
|
// XXX can we loose stuff from state this way???
|
||||||
// ...at this stage it should more or less be static -- check!
|
// ...at this stage it should more or less be static -- check!
|
||||||
var res =
|
var res =
|
||||||
await this.__parser__.parse(this, ast, {
|
await this.__parser__.parse(this, ast, {
|
||||||
@ -1038,6 +1051,7 @@ object.Constructor('Page', BasePage, {
|
|||||||
: [...outer, ...local],
|
: [...outer, ...local],
|
||||||
})
|
})
|
||||||
return {data: res} }
|
return {data: res} }
|
||||||
|
//*/
|
||||||
|
|
||||||
// global filters...
|
// global filters...
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user