summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/html.pm
blob: 6bf813292e1566a6dc6c03c14818685dd3bc473b (plain)
  1. #!/usr/bin/perl
  2. # Raw html as a wiki page type.
  3. package IkiWiki::Plugin::html;
  4. use warnings;
  5. use strict;
  6. use IkiWiki;
  7. sub import { #{{{
  8. IkiWiki::hook(type => "htmlize", id => "html", call => sub { shift });
  9. IkiWiki::hook(type => "htmlize", id => "htm", call => sub { shift });
  10. # ikiwiki defaults to skipping .html files as a security measure;
  11. # make it process them so this plugin can take effect
  12. $IkiWiki::config{wiki_file_prune_regexp} =~ s/\|\\\.html\?\$//;
  13. } # }}}
  14. 1