aboutsummaryrefslogtreecommitdiff
path: root/doc/templates.mdwn
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-02-21 22:45:29 +0000
committerSimon McVittie <smcv@debian.org>2014-03-05 10:42:19 +0000
commit7672014582a994624503399a1f50e855c4fc9ca7 (patch)
treee723c239359721e7403719bf30c0f188e1494c98 /doc/templates.mdwn
parentcbb3218db762341a1eafbf2892cb100755772f78 (diff)
downloadikiwiki-7672014582a994624503399a1f50e855c4fc9ca7.tar
ikiwiki-7672014582a994624503399a1f50e855c4fc9ca7.tar.gz
Add templatebody plugin and directive, and enable it by default
Also add a regression test for templatebody.
Diffstat (limited to 'doc/templates.mdwn')
-rw-r--r--doc/templates.mdwn9
1 files changed, 7 insertions, 2 deletions
diff --git a/doc/templates.mdwn b/doc/templates.mdwn
index d0f891c21..80372fcb7 100644
--- a/doc/templates.mdwn
+++ b/doc/templates.mdwn
@@ -14,8 +14,10 @@ easy to learn. All you really need to know to modify templates is this:
[[!if test="enabled(template) or enabled(edittemplate)" then="""
## template pages
-Template pages are regular wiki pages that are used as templates for other
-pages.
+Template pages are regular wiki pages containing a
+[[!iki ikiwiki/directive/templatebody desc="templatebody directive"]],
+used as templates for other pages. The parts of the template
+page outside the directive can be used to document it.
"""]]
[[!if test="enabled(template)" then="""
@@ -38,6 +40,9 @@ feeds=no archive=yes sort=title template=titlepage
rootpage=templates postformtext="Add a new template page named:"]]
"""]]
+If the template does not contain a `templatebody` directive, the entire
+source of the page is used for the template. This is deprecated.
+
## template files
Template files are unlike template pages in that they have the extension