mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-31 19:10:08 +00:00
cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
93fc63cdb7
commit
af1cf87560
21
pwiki2.js
21
pwiki2.js
@ -1806,6 +1806,10 @@ object.Constructor('Page', BasePage, {
|
|||||||
// XXX ELSE_PRIO should else attr take priority over the <else> tag???
|
// XXX ELSE_PRIO should else attr take priority over the <else> tag???
|
||||||
// ...currently as with text=... the attr takes priority...
|
// ...currently as with text=... the attr takes priority...
|
||||||
// XXX SORT sorting not implemented yet....
|
// XXX SORT sorting not implemented yet....
|
||||||
|
// XXX should support arrays...
|
||||||
|
// e.g.
|
||||||
|
// <macro src="/test/*/resolved"> ... </macro>
|
||||||
|
// ...does not work yet...
|
||||||
macro: Macro(
|
macro: Macro(
|
||||||
['name', 'src', 'sort', 'text', 'else', ['strict', 'nonstrict']],
|
['name', 'src', 'sort', 'text', 'else', ['strict', 'nonstrict']],
|
||||||
function(args, body, state){
|
function(args, body, state){
|
||||||
@ -1866,9 +1870,8 @@ object.Constructor('Page', BasePage, {
|
|||||||
: undefined }
|
: undefined }
|
||||||
|
|
||||||
// sort pages...
|
// sort pages...
|
||||||
if(sort.length > 0){
|
|
||||||
// XXX SORT
|
// XXX SORT
|
||||||
//throw new Error('macro sort: not implemented')
|
if(sort.length > 0){
|
||||||
console.log('XXX: macro sort: not implemented')
|
console.log('XXX: macro sort: not implemented')
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1884,14 +1887,6 @@ object.Constructor('Page', BasePage, {
|
|||||||
|
|
||||||
// page parser...
|
// page parser...
|
||||||
//
|
//
|
||||||
/* XXX do we actually need this???
|
|
||||||
__macroParseArgs: function(args, skip, state){
|
|
||||||
for(var [key, value] of Object.entries(args)){
|
|
||||||
if(skip.includes(skip)){
|
|
||||||
continue }
|
|
||||||
typeof(value) == 'string'
|
|
||||||
&& args[key] = this.parse(value, state) } },
|
|
||||||
//*/
|
|
||||||
__parser__: module.parser,
|
__parser__: module.parser,
|
||||||
parse: function(text, state){
|
parse: function(text, state){
|
||||||
// .parser(<state>)
|
// .parser(<state>)
|
||||||
@ -1953,12 +1948,6 @@ object.Constructor('Page', BasePage, {
|
|||||||
.join('\n') },
|
.join('\n') },
|
||||||
set text(value){
|
set text(value){
|
||||||
this.store.update(this.location, {text: value}) },
|
this.store.update(this.location, {text: value}) },
|
||||||
|
|
||||||
/*/ XXX
|
|
||||||
get index(){},
|
|
||||||
set index(value){},
|
|
||||||
//*/
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user