From 8484d318880f08b44de9ecc3c3d2105987b57ba3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 31 Jul 2016 17:06:40 +0300 Subject: [PATCH] minor tweaks... Signed-off-by: Alex A. Naanou --- wiki.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/wiki.js b/wiki.js index ad9b142..5218886 100755 --- a/wiki.js +++ b/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' +'' +'
' +'

@source(./path)

' @@ -662,10 +663,10 @@ var data = { }, 'Templates/pages': { - text: ' @source(./path)
\n' + text: ' [@source(./path)]
\n' }, 'Templates/tree': { - text: ' @source(./path)
\n' + text: ' [@source(./path)]
\n' }, 'Templates/_raw': {