aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/cannot_reliably_use_meta_in_template.mdwn
blob: de6c227f62f0afb147cf02907acb61a9da21c38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
meta title cannot reliably be put inside a template used by the
[[plugins/template]] plugin. Since meta title info is gathered in the scan
pass, which does not look at the template a page includes, it will not be
seen then, and so other pages that use the page title probably won't use
it. (Barring luck with build order.)

Update: This also affects using tags from templates.

There is a simple fix for this, just add `scan => 1` when registering the
preprocess hook for the template plugin.

However, the overhead of this has to be considered. It means that, on every
scan pass, every page containing a template will cause the template to be
loaded and filled out. This can be some serious additional overhead.

--[[Joey]] 

[[done]]