]> sipb.mit.edu Git - ikiwiki.git/blob - IkiWiki/Plugin/rawhtml.pm
Add ACTIONS variable to page.tmpl, which allows plugins to add arbitrary links to...
[ikiwiki.git] / IkiWiki / Plugin / rawhtml.pm
1 #!/usr/bin/perl
2 # Copy html files raw.
3 package IkiWiki::Plugin::rawhtml;
4
5 use warnings;
6 use strict;
7 use IkiWiki 3.00;
8
9 sub import {
10         hook(type => "getsetup", id => "rawhtml", call => \&getsetup);
11         $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
12 }
13
14 sub getsetup () {
15         return 
16                 plugin => {
17                         safe => 1,
18                         rebuild => 1, # changes file types
19                         section => "format",
20                 },
21 }
22
23 1