summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
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