aboutsummaryrefslogtreecommitdiff
path: root/doc/templates.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-10 15:25:05 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-10 15:25:42 -0400
commitdcab5e2e48275dbeb3bf514c68826e73abed08bc (patch)
treeef2c1e12d0fda33da1fc0baa9bff6166018a27a7 /doc/templates.mdwn
parentc52493422bfa0b5c58c6f952a77c769ac01f11f3 (diff)
downloadikiwiki-dcab5e2e48275dbeb3bf514c68826e73abed08bc.tar
ikiwiki-dcab5e2e48275dbeb3bf514c68826e73abed08bc.tar.gz
template: Add support for a BASENAME variable.
Diffstat (limited to 'doc/templates.mdwn')
-rw-r--r--doc/templates.mdwn3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/templates.mdwn b/doc/templates.mdwn
index 58d5d1146..b40e865e1 100644
--- a/doc/templates.mdwn
+++ b/doc/templates.mdwn
@@ -50,6 +50,9 @@ module, which allows for some fairly complex things to be done. Consult its
documentation for the full syntax, but all you really need to know are a
few things:
+* Each parameter you pass to the template directive will generate a
+ template variable. There are also some pre-defined variables like PAGE
+ and BASENAME.
* To insert the value of a variable, use `<TMPL_VAR variable>`. Wiki markup
in the value will first be converted to html.
* To insert the raw value of a variable, with wiki markup not yet converted