fixed list/generator macro rendering...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-10-26 20:50:18 +03:00
parent 01e59af5a1
commit 8a209dfa96
2 changed files with 8 additions and 3 deletions

View File

@ -862,7 +862,7 @@ object.Constructor('Page', BasePage, {
: v
return v
|| args.default }),
'': Macro(
'': Macro(
['name', 'default', ['local']],
function(args){
return this.macros.arg.call(this, args) }),
@ -983,7 +983,8 @@ object.Constructor('Page', BasePage, {
handler = handler
?? async function(src, state){
return isolated ?
{data: await this.get(src)
//{data: await this.get(src)
{data: await this
.parse({
seen: state.seen,
depends,
@ -1063,7 +1064,8 @@ object.Constructor('Page', BasePage, {
'source',
args, body, state, 'sources',
async function(src, state){
return that.parse(that.get(src).raw, state) }) }),
//return that.parse(that.get(src).raw, state) }) }),
return that.parse(this.raw, state) }) }),
//
// @quote(<src>)
//

View File

@ -23,6 +23,9 @@
* should be:
* await pwiki.parse('@source(/Test/list/static join=", ")')
* -> 'a, b, c, d, e, f'
* findings:
* - this is a problem with @source(..) while @include(..) works fine...
* FIXED, TESTING...
* XXX TAGS should ./tags (i.e. .tagstr) return a list of tags???
* XXX TAGS
* - add tags to page -- macro/filter