minor tweaks to builtin templates...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-07-31 16:47:07 +03:00
parent 5bf776826a
commit 45e40f5a62

18
wiki.js
View File

@ -639,6 +639,17 @@ var BaseData = {
//
// XXX add .json support...
var data = {
'Templates': {
text: '@filter(nl2br)'
+'XXX Genereal template description...\n'
+'<macro src="./*">'
+'<hr>'
+'<h2>@source(./path)</h2>'
+'<div>@quote(./raw)</div>'
+'</macro>\n'
+'\n',
},
'Templates/EmptyPage': {
text: ''
+'<!-- place filters here so as not to takup page space: ... -->\n'
@ -651,8 +662,7 @@ var data = {
},
'Templates/pages': {
text:
'<macro src="../**"> @source(./path)<br> </macro>\n'
text: '<macro src="../**"> @source(./path)<br> </macro>\n'
},
'Templates/_raw': {
@ -663,7 +673,7 @@ var data = {
text: '\n'
+'\n'
+'<div>\n'
+'<a href="#tree">&#x2630;</a> \n'
+'<a href="#pages">&#x2630;</a> \n'
+'@include(../path)\n'
+'\n'
+'<slot name="toggle-edit-link">\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 })