Merge branch 'master' of ssh://git.ikiwiki.info/srv/git/ikiwiki.info
[ikiwiki.git] / IkiWiki / Plugin / rawhtml.pm
blob0838bcb225a538c5c21cf05d26bad778860d0fdd
1 #!/usr/bin/perl
2 # Copy html files raw.
3 package IkiWiki::Plugin::rawhtml;
5 use warnings;
6 use strict;
7 use IkiWiki 3.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}} ];
14 sub getsetup () {
15 return
16 plugin => {
17 safe => 1,
18 rebuild => 1, # changes file types
19 section => "format",