diff --git a/wiki.js b/wiki.js index 0cadd81..6c29ab4 100755 --- a/wiki.js +++ b/wiki.js @@ -639,6 +639,17 @@ var BaseData = { // // XXX add .json support... var data = { + 'Templates': { + text: '@filter(nl2br)' + +'XXX Genereal template description...\n' + +'' + +'
' + +'

@source(./path)

' + +'
@quote(./raw)
' + +'
\n' + +'\n', + }, + 'Templates/EmptyPage': { text: '' +'\n' @@ -651,8 +662,7 @@ var data = { }, 'Templates/pages': { - text: - ' @source(./path)
\n' + text: ' @source(./path)
\n' }, 'Templates/_raw': { @@ -663,7 +673,7 @@ var data = { text: '\n' +'\n' +'
\n' - +' \n' + +' \n' +'@include(../path)\n' +'\n' +'\n' @@ -784,6 +794,8 @@ var Wiki = { +'$') return Object.keys(this.__wiki_data) + // XXX is this correct??? + .concat(Object.keys(this.__wiki_data.__proto__)) .map(function(p){ return tail != '' ? normalizePath(p +'/'+ tail) : p })