From fa720d40fdff84237d967fd7b6028412afe10f8c Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Tue, 7 Jul 2026 18:17:00 +0300 Subject: [PATCH] notes... Signed-off-by: Alex A. Naanou --- v3/pwiki/parser.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/v3/pwiki/parser.js b/v3/pwiki/parser.js index f724b80..cd4c692 100644 --- a/v3/pwiki/parser.js +++ b/v3/pwiki/parser.js @@ -898,6 +898,8 @@ var parser = module.parser = { __proto__: BaseParser, + INCLUDE_NEST_LIMIT: 20, + // // (, , ){ .. } // -> undefined @@ -924,6 +926,13 @@ module.parser = { // // | - // + // XXX the rewrite: + // - these need to be called after everything is done + // - globally in .exec(..) ??? + // - localy after the item content is ready + // -> should we have and .onDone(..) event somwhere in the tree??? + // ...this would be usefull for the callback renderer too... + // // XXX BUG: this does not show any results: // pwiki.exec('moo test') // -> '' @@ -1285,7 +1294,6 @@ module.parser = { // XXX need a way to make encode option transparent... // XXX do we want to load a specific slot/block??? // XXX REVISE... - INCLUDE_LIMIT: 20, include: Macro( ['src', 'recursive', 'join', ['s', 'strict', 'isolated']], @@ -1331,7 +1339,7 @@ module.parser = { // re-include limit... // XXX HACK??? if( ++(state.included ??= {[path]: 0})[path] - > this.macros.INCLUDE_LIMIT ?? 20){ + > this.INCLUDE_NEST_LIMIT ?? 20){ // XXX BUG: for some reason for async recursion this // breaks returning [object Object] overriding // the actual return value