X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=doc%2Ftemplates.mdwn;h=58d5d11461f77194036c30b919f61d42a53e2dc3;hb=17dc5df1f5d1068ea0d18bc0bd1c75dc9ebeb65a;hp=101b69763aef38b5ca66c6f92f542e096e67357f;hpb=6ed7ea211bf344c48115edd13a1f5c808c1607b3;p=ikiwiki.git diff --git a/doc/templates.mdwn b/doc/templates.mdwn index 101b69763..58d5d1146 100644 --- a/doc/templates.mdwn +++ b/doc/templates.mdwn @@ -1,3 +1,4 @@ +[[!meta robots="noindex, follow"]] [[!if test="enabled(template)" then="This wiki has templates **enabled**." else="This wiki has templates **disabled**." @@ -39,9 +40,10 @@ large chunks of marked up text to be embedded into a template: ## Creating a template -To create a template, simply add a template directive to a page, and page will -provide a link that can be used to create the template. The template is a -regular wiki (.mdwn) page, **located in the `templates/` directory** under source control. Nothing to do with **templatedir** from your ikiwiki configuration. +To create a template, simply add a template directive to a page, and the +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. 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