mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-17 08:31:38 +00:00
minor tweaks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c26cd5ac0d
commit
8484d31888
15
wiki.js
15
wiki.js
@ -563,11 +563,11 @@ var macro = {
|
||||
// XXX add docs...
|
||||
var BaseData = {
|
||||
// Macro acces to standard page attributes (paths)...
|
||||
'System/title': function(){ return '['+ this.get('..').title +']' },
|
||||
'System/path': function(){ return '['+ this.dir +']' },
|
||||
'System/dir': function(){ return '['+ this.get('..').dir +']' },
|
||||
'System/location': function(){ return '['+ this.dir +']' },
|
||||
'System/resolved': function(){ return '['+ this.get('..').acquire() +']' },
|
||||
'System/title': function(){ return this.get('..').title },
|
||||
'System/path': function(){ return this.dir },
|
||||
'System/dir': function(){ return this.get('..').dir },
|
||||
'System/location': function(){ return this.dir },
|
||||
'System/resolved': function(){ return this.get('..').acquire() },
|
||||
|
||||
// page data...
|
||||
//
|
||||
@ -642,6 +642,7 @@ var data = {
|
||||
'Templates': {
|
||||
text: '@filter(nl2br)'
|
||||
+'XXX Genereal template description...\n'
|
||||
+'\n'
|
||||
+'<macro src="./*">'
|
||||
+'<hr>'
|
||||
+'<h2>@source(./path)</h2>'
|
||||
@ -662,10 +663,10 @@ var data = {
|
||||
},
|
||||
|
||||
'Templates/pages': {
|
||||
text: '<macro src="../*"> @source(./path)<br> </macro>\n'
|
||||
text: '<macro src="../*"> [@source(./path)]<br> </macro>\n'
|
||||
},
|
||||
'Templates/tree': {
|
||||
text: '<macro src="../**"> @source(./path)<br> </macro>\n'
|
||||
text: '<macro src="../**"> [@source(./path)]<br> </macro>\n'
|
||||
},
|
||||
|
||||
'Templates/_raw': {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user