summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-02-17 13:30:07 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-02-17 13:30:07 -0500
commit9acc4d578d7468ebb54a02377e571c89bb76ad9b (patch)
tree2a6c3d13c4230d9102c33ae59db6b2c0cedad4ad /IkiWiki/Plugin
parent84b48681c630c1c2dab21ad6c260be3a5b5fff0e (diff)
template: Load templates in scan mode
This is potentially expensive, but is necessary so that meta and tag directives, and other links on templates affect the page using the template reliably.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/template.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index 57bff20ff..b872f0962 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -10,7 +10,8 @@ use Encode;
sub import {
hook(type => "getsetup", id => "template", call => \&getsetup);
- hook(type => "preprocess", id => "template", call => \&preprocess);
+ hook(type => "preprocess", id => "template", call => \&preprocess,
+ scan => 1);
}
sub getsetup () {