]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/color.pm
Encode not used
[ikiwiki.git] / IkiWiki / Plugin / color.pm
index 53d8389d231cacafc6320292bd2a6b4fcc1456e8..d550dd9f4b42ba7759b44b9571f0bc959e026423 100644 (file)
@@ -5,11 +5,21 @@ package IkiWiki::Plugin::color;
 
 use warnings;
 use strict;
-use IkiWiki 2.00;
+use IkiWiki 3.00;
 
 sub import {
        hook(type => "preprocess", id => "color", call => \&preprocess);
        hook(type => "format",     id => "color", call => \&format);
+       hook(type => "getsetup",   id => "color", call => \&getsetup);
+}
+
+sub getsetup () {
+       return
+               plugin => {
+                       safe => 1,
+                       rebuild => undef,
+                       section => "widget",
+               },
 }
 
 sub preserve_style ($$$) {