summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/html.pm
blob: 7623ba6a96accd71d67d8a7ac84c1422ed535224 (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 2.00;
  7. sub import { #{{{
  8. hook(type => "htmlize", id => "html", call => \&htmlize);
  9. hook(type => "htmlize", id => "htm", call => \&htmlize);
  10. # ikiwiki defaults to skipping .html files as a security measure;
  11. # make it process them so this plugin can take effect
  12. $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
  13. } # }}}
  14. sub htmlize (@) { #{{{
  15. my %params=@_;
  16. return $params{content};
  17. } #}}}
  18. 1