mirror of
https://github.com/flynx/pWiki.git
synced 2025-12-18 00:51: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...
|
// XXX add docs...
|
||||||
var BaseData = {
|
var BaseData = {
|
||||||
// Macro acces to standard page attributes (paths)...
|
// Macro acces to standard page attributes (paths)...
|
||||||
'System/title': function(){ return '['+ this.get('..').title +']' },
|
'System/title': function(){ return this.get('..').title },
|
||||||
'System/path': function(){ return '['+ this.dir +']' },
|
'System/path': function(){ return this.dir },
|
||||||
'System/dir': function(){ return '['+ this.get('..').dir +']' },
|
'System/dir': function(){ return this.get('..').dir },
|
||||||
'System/location': function(){ return '['+ this.dir +']' },
|
'System/location': function(){ return this.dir },
|
||||||
'System/resolved': function(){ return '['+ this.get('..').acquire() +']' },
|
'System/resolved': function(){ return this.get('..').acquire() },
|
||||||
|
|
||||||
// page data...
|
// page data...
|
||||||
//
|
//
|
||||||
@ -642,6 +642,7 @@ var data = {
|
|||||||
'Templates': {
|
'Templates': {
|
||||||
text: '@filter(nl2br)'
|
text: '@filter(nl2br)'
|
||||||
+'XXX Genereal template description...\n'
|
+'XXX Genereal template description...\n'
|
||||||
|
+'\n'
|
||||||
+'<macro src="./*">'
|
+'<macro src="./*">'
|
||||||
+'<hr>'
|
+'<hr>'
|
||||||
+'<h2>@source(./path)</h2>'
|
+'<h2>@source(./path)</h2>'
|
||||||
@ -662,10 +663,10 @@ var data = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'Templates/pages': {
|
'Templates/pages': {
|
||||||
text: '<macro src="../*"> @source(./path)<br> </macro>\n'
|
text: '<macro src="../*"> [@source(./path)]<br> </macro>\n'
|
||||||
},
|
},
|
||||||
'Templates/tree': {
|
'Templates/tree': {
|
||||||
text: '<macro src="../**"> @source(./path)<br> </macro>\n'
|
text: '<macro src="../**"> [@source(./path)]<br> </macro>\n'
|
||||||
},
|
},
|
||||||
|
|
||||||
'Templates/_raw': {
|
'Templates/_raw': {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user