diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-08 21:00:18 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-01-08 21:00:18 +0000 |
commit | 3f3f3e46ad7890ba8ee7d1aeb51757424b534175 (patch) | |
tree | ca84fb32f61ee958d04331d17f7527cf7f01674e /IkiWiki | |
parent | ac08c5d4e02ebdb7135511cb45196b7118c4ab7b (diff) |
* Add a rawhtml plugin that allows copying raw html files from the srcdir.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/rawhtml.pm | 13 |
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 |