diff --git a/wiki.js b/wiki.js
index 6ac9e42..4e3a0f1 100755
--- a/wiki.js
+++ b/wiki.js
@@ -84,7 +84,7 @@ function Macro(doc, args, func){
// XXX should inline macros support named args???
var macro = {
- __include_marker__: '{{{include_marker}}}',
+ __include_marker__: '{{{INCLUDE-MARKER}}}',
// Abstract macro syntax:
// Inline macro:
@@ -116,6 +116,11 @@ var macro = {
// Macros...
//
macro: {
+ now: Macro('Create a now id',
+ [],
+ function(context, elem, state){
+ return ''+Date.now()
+ }),
// select filter to post-process text...
filter: Macro('Filter to post-process text',
['name'],
@@ -578,10 +583,6 @@ var macro = {
// XXX not sure about these...
// XXX add docs...
var BaseData = {
- // XXX Page modifiers...
- //'System/sort': function(){ return this.get('..').sort() },
- //'System/reverse': function(){ return this.get('..').reverse() },
-
// Macro acces to standard page attributes (paths)...
'System/title': function(){ return this.get('..').title },
'System/path': function(){ return this.dir },
@@ -637,10 +638,15 @@ var BaseData = {
.join(' ')
},
- // XXX this needs a redirect...
+ // Page modifiers/actions...
+ // XXX these needs redirecting...
+ //'System/sort': function(){ return this.get('..').sort() },
+ //'System/reverse': function(){ return this.get('..').reverse() },
'System/delete': function(){
var p = this.dir
delete this.__wiki_data[p]
+ //return this.get('../..').text
+ return 'Removed...'
},
}
@@ -770,11 +776,48 @@ var data = {
+''
+'',
},
+
+
+ // XXX experimental...
+ // XXX need sorting...
+ 'Templates/_todo': {
+ text: ''
+ +'\n'
+ +'\n'
+ +'
'
+ // XXX temporary until I figure out how to deal with the saveto=".."
+ // in implicit vs. explicit _view
+ +''
+ +'@source(../title)'
+ +'\n'
+ +'\n'
+ +'\n'
+ +'