summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rawhtml.pm
blob: ad8a610c1420f73a3ce0eabf30f9300afcdff5a4 (plain)
  1. #!/usr/bin/perl
  2. # Copy html files raw.
  3. package IkiWiki::Plugin::rawhtml;
  4. use warnings;
  5. use strict;
  6. use IkiWiki 3.00;
  7. sub import {
  8. hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
  9. $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
  10. }
  11. sub getsetup () {
  12. return
  13. plugin => {
  14. safe => 1,
  15. rebuild => 1, # changes file types
  16. },
  17. }
  18. 1