diff --git a/pwiki/store/base.js b/pwiki/store/base.js index 309c2d2..0b7e282 100755 --- a/pwiki/store/base.js +++ b/pwiki/store/base.js @@ -312,13 +312,13 @@ module.BaseStore = { var {text, tags} = update text = [ path, - ((text + (text && typeof(text) != 'function') ? text - : ''), - (tags ? + : '', + tags ? '#'+ tags.join(' #') - : ''), + : '', ].join('\n\n') ;(await data).add(path, update.text) return data }, diff --git a/pwiki2.js b/pwiki2.js index 90de9fc..b84346a 100755 --- a/pwiki2.js +++ b/pwiki2.js @@ -25,6 +25,12 @@ * - * * +* XXX FEATURE: to avoid reinventing the wheel, serialize stuff as pages... +* something like: +* /.index/ +* would be logical for indexes or: +* /.data/ +* for general stuff... * XXX macro: macro:count / macro:index vars can be overridden by count/index * attributes.... * ...this needs testing...