Paul Menzel wrote:
> I want to use the `template` parameter of the `inline` directive [1]. I
> saved a template foo.tmpl in the templates directory of my wiki, but got
> the error »nonexistant template foo«.
> 
> Moving the template to /usr/share/ikiwiki/templates/ worked. Is this on
> purpose that templates in the wiki directory are ignored [3]? Or is this
> directory only for the `template` directive [2]?

So far, it is only for use by the template directive. 

Note that you can set `templatedir` to any directory you like, and
ikiwiki will look there first for templates before
/usr/share/ikiwiki/templates/

The key difference between the in-wiki templates directory and the
external one is that, since the in-wiki one can be edited using the
wiki, templates in it have to be html sanitized when they are used.
While templates from the templatedir can contain arbitrary
html/javascript/css, which can be very useful for styling a wiki.

I've checked, and in order to make inline also be able to safely use
templates from the in-wiki directory, inline would need to explicitly
sanitize templates from there after filling them out.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to