monotone: Deal with format change in version 0.45. (Thanks, Richard Levitte)
[ikiwiki] / IkiWiki / Plugin / rawhtml.pm
1 #!/usr/bin/perl
2 # Copy html files raw.
3 package IkiWiki::Plugin::rawhtml;
4
5 use warnings;
6 use strict;
7 use IkiWiki 3.00;
8
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 }
13
14 sub getsetup () {
15         return 
16                 plugin => {
17                         safe => 1,
18                         rebuild => 1, # changes file types
19                 },
20 }
21
22 1