mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
notes and tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a7b9b6d4d6
commit
8dacc09692
@ -558,6 +558,7 @@ object.Constructor('BasePage', {
|
||||
|
||||
// sorting...
|
||||
//
|
||||
// XXX revise how we sore order...
|
||||
sort: async function(...cmp){
|
||||
// normalize to path...
|
||||
this.metadata =
|
||||
@ -570,7 +571,9 @@ object.Constructor('BasePage', {
|
||||
sortAs: async function(order){
|
||||
this.metadata =
|
||||
order instanceof Array ?
|
||||
{ order }
|
||||
{ order: order
|
||||
.map(function(p){
|
||||
return pwpath.sanitize(p) }) }
|
||||
: { order: (await this.metadata)['order_'+ order] }
|
||||
return this },
|
||||
// XXX EXPERIMENTAL -- move this to store???
|
||||
|
||||
10
pwiki2.js
10
pwiki2.js
@ -37,6 +37,16 @@
|
||||
* -
|
||||
*
|
||||
*
|
||||
* XXX revise how we store order...
|
||||
* .metadata.order = [ .. ]
|
||||
* .metadata.order_<name> = [ .. ]
|
||||
* ...
|
||||
* or:
|
||||
* .metadata.order = {
|
||||
* 'default': [ .. ],
|
||||
* <name>: [ .. ]
|
||||
* ...
|
||||
* }
|
||||
* XXX macros: else/default macro args essentially mean the same thing, should we
|
||||
* unify them to use the same name???
|
||||
* XXX parser: error handling: revise page quoting...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user