aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/toggle.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/toggle.pm
parent210b9ba2f3999db21030bb7ca05b9861b763788a (diff)
downloadikiwiki-39056453424dcb7e01f69c502192e45604d1fe84.tar
ikiwiki-39056453424dcb7e01f69c502192e45604d1fe84.tar.gz
add plugin safe/rebuild info (part 3 of 3)
Diffstat (limited to 'IkiWiki/Plugin/toggle.pm')
-rw-r--r--IkiWiki/Plugin/toggle.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/toggle.pm b/IkiWiki/Plugin/toggle.pm
index e203defb0..610d38e3a 100644
--- a/IkiWiki/Plugin/toggle.pm
+++ b/IkiWiki/Plugin/toggle.pm
@@ -60,6 +60,7 @@ function getElementsByClass(cls, node, tag) {
EOF
sub import { #{{{
+ hook(type => "getsetup", id => "toggle", call => \&getsetup);
hook(type => "preprocess", id => "toggle",
call => \&preprocess_toggle);
hook(type => "preprocess", id => "toggleable",
@@ -67,6 +68,14 @@ sub import { #{{{
hook(type => "format", id => "toggle", call => \&format);
} # }}}
+sub getsetup () { #{{{
+ return
+ plugin => {
+ safe => 1,
+ rebuild => undef,
+ },
+} #}}}
+
sub genid ($$) { #{{{
my $page=shift;
my $id=shift;