]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/toggle.pm
filecheck: Fall back to testing for binary or plain text files if no mime type is...
[git.ikiwiki.info.git] / IkiWiki / Plugin / toggle.pm
index e203defb09f602f462ceac269d6742651691802c..610d38e3ac0d8e39c43d56e727f098441862b5ce 100644 (file)
@@ -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;