deep defaults...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2022-05-17 20:30:26 +03:00
parent f901a8b11b
commit 028feec191

View File

@ -202,7 +202,7 @@ module.path = {
// XXX BUG: mixing up '/' and '' paths... // XXX BUG: mixing up '/' and '' paths...
// XXX LEADING_SLASH should this be strict about leading '/' in paths??? // XXX LEADING_SLASH should this be strict about leading '/' in paths???
// ...this may lead to duplicate paths created -- '/a/b' and 'a/b' // ...this may lead to duplicate paths created -- '/a/b' and 'a/b'
// XXX path macros??? // XXX need to ensure that that at least NotFound page is resoled...
// XXX should we support page symlinking??? // XXX should we support page symlinking???
var BaseStore = var BaseStore =
module.BaseStore = { module.BaseStore = {
@ -1351,6 +1351,8 @@ object.Constructor('Page', BasePage, {
// list of macros that will get raw text of their content... // list of macros that will get raw text of their content...
QUOTING_MACROS: ['quote'], QUOTING_MACROS: ['quote'],
//PAGE_NOT_FOUND: 'PAGE NOT FOUND',
// //
// <filter>(<source>) // <filter>(<source>)
// -> <result> // -> <result>
@ -1764,6 +1766,8 @@ object.Constructor('Page', BasePage, {
d.call(that) d.call(that)
: d.text }) : d.text })
.join('\n') .join('\n')
: data == null ?
this.PAGE_NOT_FOUND
: data.text }, : data.text },
set raw(value){ set raw(value){
this.store.update(this.location, {text: value}) }, this.store.update(this.location, {text: value}) },