]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/rawhtml.pm
po: factorize extraction of a slave page's masterpage and lang
[git.ikiwiki.info.git] / IkiWiki / Plugin / rawhtml.pm
1 #!/usr/bin/perl
2 # Copy html files raw.
3 package IkiWiki::Plugin::rawhtml;
5 use warnings;
6 use strict;
7 use IkiWiki 2.00;
9 sub import { #{{{
10         hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
11         $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
12 } # }}}
14 sub getsetup () { #{{{
15         return 
16                 plugin => {
17                         safe => 1,
18                         rebuild => 1, # changes file types
19                 },
20 } #}}}
22 1