summaryrefslogtreecommitdiff
path: root/doc/forum/Possible_to_use_meta_variables_in_templates__63__/comment_1_556078a24041289d8f0b7ee756664690._comment
blob: 3aeeec793b62a9a035475e32d08c8ebb9fc7f4d0 (plain)
  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. I think having `pagetemplate` hooks run for this sort of template
  15. by default would be rather astonishing, but perhaps some sort of
  16. opt-in while defining the template would be reasonable? One problem
  17. with that is that the templates used by [[ikiwiki/directive/template]]
  18. are just wiki pages, and don't really have any special syntax support.
  19. """]]