summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-04-23 15:02:07 -0400
committerJoey Hess <joey@kitenet.net>2010-04-23 15:02:07 -0400
commit78fd3b35a2805489185a14e00b53b450eec961f1 (patch)
treebfe42959228eb1e50bbf90e4679eefe56fafe9e3 /doc
parentee8d237f98b2c82b441dc7c26f6ce8545362cb73 (diff)
allow template pages to not be under templates/
Diffstat (limited to 'doc')
-rw-r--r--doc/plugins/write.mdwn14
1 files changed, 8 insertions, 6 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 1407b5a12..00b54bdd3 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -705,12 +705,14 @@ Creates and returns a [[!cpan HTML::Template]] object. The first parameter
is the name of the template file. The optional remaining parameters are
passed to `HTML::Template->new`.
-The template file is first looked for in the templates/ subdirectory of the
-srcdir. Failing that, it is looked for in the templatedir. Typically
-the filename will have a ".tmpl" extension. If a filename with no extension
-is passed, a wiki page in templates/ with its name is used as the template.
-That should only be done for templates which it is safe to let wiki users
-edit.
+Normally, the template file is first looked for in the templates/ subdirectory
+of the srcdir. Failing that, it is looked for in the templatedir.
+
+Wiki pages can be used as templates. This should be done only for templates
+which it is safe to let wiki users edit. Enable it by passing a filename
+with no ".tmpl" extension. Template pages are normally looked for in
+the templates/ directory. If the page name starts with "/", a page
+elsewhere in the wiki can be used.
### `template_depends($$;@)`