2007-01-08 22:00:18 +01:00
|
|
|
#!/usr/bin/perl
|
|
|
|
# Copy html files raw.
|
|
|
|
package IkiWiki::Plugin::rawhtml;
|
|
|
|
|
|
|
|
use warnings;
|
|
|
|
use strict;
|
2008-12-23 22:34:19 +01:00
|
|
|
use IkiWiki 3.00;
|
2007-01-08 22:00:18 +01:00
|
|
|
|
2008-12-17 21:22:16 +01:00
|
|
|
sub import {
|
2008-08-03 23:20:21 +02:00
|
|
|
hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
|
2007-01-08 22:00:18 +01:00
|
|
|
$config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
|
2008-12-17 21:22:16 +01:00
|
|
|
}
|
2007-01-08 22:00:18 +01:00
|
|
|
|
2008-12-17 21:22:16 +01:00
|
|
|
sub getsetup () {
|
2008-08-03 23:20:21 +02:00
|
|
|
return
|
|
|
|
plugin => {
|
|
|
|
safe => 1,
|
|
|
|
rebuild => 1, # changes file types
|
|
|
|
},
|
2008-12-17 21:22:16 +01:00
|
|
|
}
|
2008-08-03 23:20:21 +02:00
|
|
|
|
2007-01-08 22:00:18 +01:00
|
|
|
1
|