mirror of
https://github.com/flynx/pWiki.git
synced 2026-07-13 20:10:57 +00:00
notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
75c86f66e1
commit
fa720d40fd
@ -898,6 +898,8 @@ var parser =
|
|||||||
module.parser = {
|
module.parser = {
|
||||||
__proto__: BaseParser,
|
__proto__: BaseParser,
|
||||||
|
|
||||||
|
INCLUDE_NEST_LIMIT: 20,
|
||||||
|
|
||||||
//
|
//
|
||||||
// <macro>(<args>, <body>, <state>){ .. }
|
// <macro>(<args>, <body>, <state>){ .. }
|
||||||
// -> undefined
|
// -> undefined
|
||||||
@ -924,6 +926,13 @@ module.parser = {
|
|||||||
// <filter> <filter-spec>
|
// <filter> <filter-spec>
|
||||||
// | -<filter> <filter-spec>
|
// | -<filter> <filter-spec>
|
||||||
//
|
//
|
||||||
|
// 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:
|
// XXX BUG: this does not show any results:
|
||||||
// pwiki.exec('<filter test>moo test</filter>')
|
// pwiki.exec('<filter test>moo test</filter>')
|
||||||
// -> ''
|
// -> ''
|
||||||
@ -1285,7 +1294,6 @@ module.parser = {
|
|||||||
// XXX need a way to make encode option transparent...
|
// XXX need a way to make encode option transparent...
|
||||||
// XXX do we want to load a specific slot/block???
|
// XXX do we want to load a specific slot/block???
|
||||||
// XXX REVISE...
|
// XXX REVISE...
|
||||||
INCLUDE_LIMIT: 20,
|
|
||||||
include: Macro(
|
include: Macro(
|
||||||
['src', 'recursive', 'join',
|
['src', 'recursive', 'join',
|
||||||
['s', 'strict', 'isolated']],
|
['s', 'strict', 'isolated']],
|
||||||
@ -1331,7 +1339,7 @@ module.parser = {
|
|||||||
// re-include limit...
|
// re-include limit...
|
||||||
// XXX HACK???
|
// XXX HACK???
|
||||||
if( ++(state.included ??= {[path]: 0})[path]
|
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
|
// XXX BUG: for some reason for async recursion this
|
||||||
// breaks returning [object Object] overriding
|
// breaks returning [object Object] overriding
|
||||||
// the actual return value
|
// the actual return value
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user