aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-08 21:00:18 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-01-08 21:00:18 +0000
commit3f3f3e46ad7890ba8ee7d1aeb51757424b534175 (patch)
treeca84fb32f61ee958d04331d17f7527cf7f01674e /IkiWiki
parentac08c5d4e02ebdb7135511cb45196b7118c4ab7b (diff)
downloadikiwiki-3f3f3e46ad7890ba8ee7d1aeb51757424b534175.tar
ikiwiki-3f3f3e46ad7890ba8ee7d1aeb51757424b534175.tar.gz
* Add a rawhtml plugin that allows copying raw html files from the srcdir.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/rawhtml.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/rawhtml.pm b/IkiWiki/Plugin/rawhtml.pm
new file mode 100644
index 000000000..30e971514
--- /dev/null
+++ b/IkiWiki/Plugin/rawhtml.pm
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+# Copy html files raw.
+package IkiWiki::Plugin::rawhtml;
+
+use warnings;
+use strict;
+use IkiWiki;
+
+sub import { #{{{
+ $config{wiki_file_prune_regexps} = [ grep { !m/\\\.x\?html\?\$/ } @{$config{wiki_file_prune_regexps}} ];
+} # }}}
+
+1