summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/rawhtml.pm
blob: 0838bcb225a538c5c21cf05d26bad778860d0fdd (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. section => "format",
  17. },
  18. }
  19. 1