mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
minor tweaks to builtin templates...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
5bf776826a
commit
45e40f5a62
18
wiki.js
18
wiki.js
@ -639,6 +639,17 @@ var BaseData = {
|
|||||||
//
|
//
|
||||||
// XXX add .json support...
|
// XXX add .json support...
|
||||||
var data = {
|
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': {
|
'Templates/EmptyPage': {
|
||||||
text: ''
|
text: ''
|
||||||
+'<!-- place filters here so as not to takup page space: ... -->\n'
|
+'<!-- place filters here so as not to takup page space: ... -->\n'
|
||||||
@ -651,8 +662,7 @@ var data = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'Templates/pages': {
|
'Templates/pages': {
|
||||||
text:
|
text: '<macro src="../**"> @source(./path)<br> </macro>\n'
|
||||||
'<macro src="../**"> @source(./path)<br> </macro>\n'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'Templates/_raw': {
|
'Templates/_raw': {
|
||||||
@ -663,7 +673,7 @@ var data = {
|
|||||||
text: '\n'
|
text: '\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'<div>\n'
|
+'<div>\n'
|
||||||
+'<a href="#tree">☰</a> \n'
|
+'<a href="#pages">☰</a> \n'
|
||||||
+'@include(../path)\n'
|
+'@include(../path)\n'
|
||||||
+'\n'
|
+'\n'
|
||||||
+'<slot name="toggle-edit-link">\n'
|
+'<slot name="toggle-edit-link">\n'
|
||||||
@ -784,6 +794,8 @@ var Wiki = {
|
|||||||
+'$')
|
+'$')
|
||||||
|
|
||||||
return Object.keys(this.__wiki_data)
|
return Object.keys(this.__wiki_data)
|
||||||
|
// XXX is this correct???
|
||||||
|
.concat(Object.keys(this.__wiki_data.__proto__))
|
||||||
.map(function(p){ return tail != '' ?
|
.map(function(p){ return tail != '' ?
|
||||||
normalizePath(p +'/'+ tail)
|
normalizePath(p +'/'+ tail)
|
||||||
: p })
|
: p })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user