]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/postsparkline.pm
add plugin safe/rebuild info (part 2 of 3)
[ikiwiki.git] / IkiWiki / Plugin / postsparkline.pm
index 6fc96f8b343cbca8eeeb893c41e2569a962d915c..1f4c065c1e1f09ad6ba9d395ecd3c002a1bb0a25 100644 (file)
@@ -7,9 +7,18 @@ use IkiWiki 2.00;
 
 sub import { #{{{
        IkiWiki::loadplugin('sparkline');
+       hook(type => "getsetup", id => "postsparkline", call => \&getsetup);
        hook(type => "preprocess", id => "postsparkline", call => \&preprocess);
 } # }}}
 
+sub getsetup () { #{{{
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+} #}}}
+
 sub preprocess (@) { #{{{
        my %params=@_;