Added my site, even though it's in an early state
[ikiwiki.git] / IkiWiki / Plugin / html.pm
blob4dbae081bd9476c154728d32efe4c054e1e954f9
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 3.00;
9 sub import {
10 hook(type => "getsetup", id => "html", call => \&getsetup);
11 hook(type => "htmlize", id => "html", call => \&htmlize);
12 hook(type => "htmlize", id => "htm", call => \&htmlize);
14 # ikiwiki defaults to skipping .html files as a security measure;
15 # make it process them so this plugin can take effect
16 $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
19 sub getsetup () {
20 return
21 plugin => {
22 safe => 1,
23 rebuild => 1, # format plugin
24 section => "format",
28 sub htmlize (@) {
29 my %params=@_;
30 return $params{content};