mirror of
https://github.com/flynx/pWiki.git
synced 2026-07-15 12:57:19 +00:00
cleanup + notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d24257d3e2
commit
5f64d70fbb
@ -742,25 +742,9 @@ module.BaseParser = {
|
|||||||
// times...
|
// times...
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
// XXX these yeild different results:
|
// XXX can we prevent reaces over state.unresolved???
|
||||||
// r = parser.resolve(
|
// it can be deleted when calling .parse(..) / .parseNested(..)
|
||||||
// tests.P,
|
// while parsing, for example from within a macro...
|
||||||
// '<slot X>@include(/async/page)</slot> <slot X value>',
|
|
||||||
// s = {})
|
|
||||||
// s.wait.then(function(){
|
|
||||||
// console.log(r) }) // -> ['Page '] (err)
|
|
||||||
// and:
|
|
||||||
// r = parser.expand(
|
|
||||||
// tests.P,
|
|
||||||
// '<slot X>@include(/async/page)</slot> <slot X slot/>',
|
|
||||||
// s = {})
|
|
||||||
// s.wait.then(function(){
|
|
||||||
// r = parser.resolve(test.P, r, s)
|
|
||||||
// console.log(r) }) // -> ['slot '] (correct)
|
|
||||||
// -> promises seem to not be sequenced correctly here...
|
|
||||||
// XXX it looks like the first slot is resolved before the last
|
|
||||||
// slot has a chance to set the value as it is waiting for
|
|
||||||
// the first slot to finish...
|
|
||||||
resolve: function(page, ast, state={}, nested_handlers={}){
|
resolve: function(page, ast, state={}, nested_handlers={}){
|
||||||
var that = this
|
var that = this
|
||||||
ast = typeof(ast) != 'object' ?
|
ast = typeof(ast) != 'object' ?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user