aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/template.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-08-03 19:35:35 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-08-03 19:36:11 -0400
commit39056453424dcb7e01f69c502192e45604d1fe84 (patch)
tree1aebbca749dd0dce1cc2747ededf85a3fdc78e3e /IkiWiki/Plugin/template.pm
parent210b9ba2f3999db21030bb7ca05b9861b763788a (diff)
downloadikiwiki-39056453424dcb7e01f69c502192e45604d1fe84.tar
ikiwiki-39056453424dcb7e01f69c502192e45604d1fe84.tar.gz
add plugin safe/rebuild info (part 3 of 3)
Diffstat (limited to 'IkiWiki/Plugin/template.pm')
-rw-r--r--IkiWiki/Plugin/template.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/template.pm b/IkiWiki/Plugin/template.pm
index c33dbbb83..a2859b2a9 100644
--- a/IkiWiki/Plugin/template.pm
+++ b/IkiWiki/Plugin/template.pm
@@ -9,9 +9,18 @@ use HTML::Template;
use Encode;
sub import { #{{{
+ hook(type => "getsetup", id => "template", call => \&getsetup);
hook(type => "preprocess", id => "template", call => \&preprocess);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ },
+} #}}}
+
sub preprocess (@) { #{{{
my %params=@_;