]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/goodstuff.pm
move dedup code into function, simplify
[git.ikiwiki.info.git] / IkiWiki / Plugin / goodstuff.pm
index 384123f601b380597bb4dba3c912ecebef6f103f..451cd6f84fce568167c1d8ef045baba3513dcb80 100644 (file)
@@ -4,27 +4,40 @@ package IkiWiki::Plugin::goodstuff;
 
 use warnings;
 use strict;
-use IkiWiki;
+use IkiWiki 3.00;
 
 my @bundle=qw{
        brokenlinks
        img
        map
-       meta
+       more
        orphans
        pagecount
        pagestats
+       progress
        shortcut
        smiley
        tag
+       table
        template
        toc
        toggle
-       otl
+       repolist
 };
 
-sub import { #{{{
-       IkiWiki::loadplugin($_) foreach @bundle;
-} # }}}
+sub import {
+       hook(type => "getsetup", id => "goodstuff", call => \&getsetup);
+       foreach my $plugin (@bundle) {
+               IkiWiki::loadplugin($plugin);
+       }
+}
+
+sub getsetup {
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+               },
+}
 
 1