]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment
Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / doc / forum / Possible_to_use_meta_variables_in_templates__63__ / comment_1_556078a24041289d8f0b7ee756664690._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="not supported at the moment"
5  date="2011-01-24T15:17:59Z"
6  content="""
7 This isn't supported, because [[ikiwiki/directive/template]] templates
8 don't run `pagetemplate` hooks (which is how information gets from
9 [[ikiwiki/directive/meta]] into, for instance, `page.tmpl`). The only
10 inputs to the `HTML::Template` are the parameters passed to the
11 directive, plus the `raw_`-prefixed versions of those, plus the extra
12 parameters passed to every `preprocess` hook (currently `page`, `destpage`
13 and `preview`).
14
15 I think having `pagetemplate` hooks run for this sort of template
16 by default would be rather astonishing, but perhaps some sort of
17 opt-in while defining the template would be reasonable? One problem
18 with that is that the templates used by [[ikiwiki/directive/template]]
19 are just wiki pages, and don't really have any special syntax support.
20 """]]