]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - IkiWiki/Plugin/html.pm
* Work on firming up the plugin interface:
[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         hook(type => "htmlize", id => "html", call => \&htmlize);
11         hook(type => "htmlize", id => "htm", call => \&htmlize);
13         # ikiwiki defaults to skipping .html files as a security measure;
14         # make it process them so this plugin can take effect
15         $config{wiki_file_prune_regexp} =~ s/\|\\\.x\?html\?\$//;
16 } # }}}
18 sub htmlize (@) { #{{{
19         my %params=@_;
20         return $params{content};
21 } #}}}
23 1