]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/rawhtml.pm
comments: Rename COMMENTURL to ADDCOMMENTURL to avoid confusion with COMMENTAUTHORURL
[ikiwiki.git] / IkiWiki / Plugin / rawhtml.pm
index 011c3a862c678d0cae73a3df3f669dec6b8d1917..73093439d55621ffa0bd75286e3d8a62ac2b2bb2 100644 (file)
@@ -6,8 +6,17 @@ use warnings;
 use strict;
 use IkiWiki 2.00;
 
-sub import { #{{{
+sub import {
+       hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
        $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
-} # }}}
+}
+
+sub getsetup () {
+       return 
+               plugin => {
+                       safe => 1,
+                       rebuild => 1, # changes file types
+               },
+}
 
 1