summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rawhtml.pm
blob: 73093439d55621ffa0bd75286e3d8a62ac2b2bb2 (plain)
  1. #!/usr/bin/perl
  2. # Copy html files raw.
  3. package IkiWiki::Plugin::rawhtml;
  4. use warnings;
  5. use strict;
  6. use IkiWiki 2.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