diff options
author | Jonas Smedegaard <dr@jones.dk> | 2012-03-01 00:52:43 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2013-10-13 00:53:28 +0200 |
commit | ddef37b4c152033f9238c2f46c49da3cb1a58192 (patch) | |
tree | 3620ea6ac64483f714dc652864e694d80b112eea /IkiWiki | |
parent | 4cb90431b53f23b694330c29cee8457f6c7e1967 (diff) |
Add plugin wikistatedir to allow setting wikistatedir to configfile.
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/wikistatedir.pm | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/wikistatedir.pm b/IkiWiki/Plugin/wikistatedir.pm new file mode 100644 index 0000000..2f579a3 --- /dev/null +++ b/IkiWiki/Plugin/wikistatedir.pm @@ -0,0 +1,28 @@ +#!/usr/bin/perl +# Wikistatedir plugin. +# by Jonas Smedegaard <dr@jones.dk> + +package IkiWiki::Plugin::wikistatedir; + +use warnings; +use strict; +use IkiWiki 3.00; + +sub import { + hook(type => "getsetup", id => "wikistatedir", call => \&getsetup); +} + +sub getsetup () { + return + plugin => { + safe => 0, + rebuild => 1, + }, + wikistatedir => { + type => "string", + safe => 0, + rebuild => 1, + }, +} + +1 |