From 3f3f3e46ad7890ba8ee7d1aeb51757424b534175 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 8 Jan 2007 21:00:18 +0000 Subject: * Add a rawhtml plugin that allows copying raw html files from the srcdir. --- IkiWiki/Plugin/rawhtml.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 IkiWiki/Plugin/rawhtml.pm (limited to 'IkiWiki') 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 -- cgit v1.2.3