diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-02 16:54:06 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-02 16:54:06 -0400 |
commit | 59ba938822ba0752e8d97e769c0d14f2eb0bbeb3 (patch) | |
tree | 6400db6797bb044b902a101c7c82bec3b65943db /doc/templates.mdwn | |
parent | 1c8ac7d88c5a3d2c63892737e54be8a1b535936c (diff) | |
download | ikiwiki-59ba938822ba0752e8d97e769c0d14f2eb0bbeb3.tar ikiwiki-59ba938822ba0752e8d97e769c0d14f2eb0bbeb3.tar.gz |
template: Search for templates in the templatedir, if they are not found as pages in the wiki.
Diffstat (limited to 'doc/templates.mdwn')
-rw-r--r-- | doc/templates.mdwn | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/templates.mdwn b/doc/templates.mdwn index eff0e15e9..07531ae98 100644 --- a/doc/templates.mdwn +++ b/doc/templates.mdwn @@ -43,6 +43,12 @@ page will provide a link that can be used to create the template. The template is a regular wiki page, located in the `templates/` subdirectory inside the source directory of the wiki. +(Alternatively, templates can be stored in a directory outside the wiki, +as files with the extension ".tmpl". +By default, these are searched for in `/usr/share/ikiwiki/templates`; +the `templatedir` setting can be used to make another directory be searched +first.) + The template uses the syntax used by the [[!cpan HTML::Template]] perl 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 |