]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/html.pm
* Add a html plugin, which can be used to write wikis in raw html,
[git.ikiwiki.info.git] / IkiWiki / Plugin / html.pm
1 #!/usr/bin/perl
2 # Raw html as a wiki page type.
3 package IkiWiki::Plugin::html;
5 use warnings;
6 use strict;
7 use IkiWiki;
9 sub import { #{{{
10         IkiWiki::hook(type => "htmlize", id => "html", call => sub { shift });
11         IkiWiki::hook(type => "htmlize", id => "htm", call => sub { shift });
13         # ikiwiki defaults to skipping .html files as a security measure;
14         # make it process them so this plugin can take effect
15         $IkiWiki::config{wiki_file_prune_regexp} =~ s/\|\\\.html\?\$//;
16 } # }}}
18 1