Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Entry of git vs. empty webform commit bug
[git.ikiwiki.info.git]
/
IkiWiki
/
Plugin
/
rawhtml.pm
diff --git
a/IkiWiki/Plugin/rawhtml.pm
b/IkiWiki/Plugin/rawhtml.pm
index 30e9715141f4812a1227e729060d554f505e2c85..0838bcb225a538c5c21cf05d26bad778860d0fdd 100644
(file)
--- a/
IkiWiki/Plugin/rawhtml.pm
+++ b/
IkiWiki/Plugin/rawhtml.pm
@@
-4,10
+4,20
@@
package IkiWiki::Plugin::rawhtml;
use warnings;
use strict;
use warnings;
use strict;
-use IkiWiki;
+use IkiWiki
3.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}} ];
$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
+ section => "format",
+ },
+}
1
1