From ddef37b4c152033f9238c2f46c49da3cb1a58192 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 1 Mar 2012 00:52:43 +0100 Subject: Add plugin wikistatedir to allow setting wikistatedir to configfile. --- IkiWiki/Plugin/wikistatedir.pm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 IkiWiki/Plugin/wikistatedir.pm 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 + +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 -- cgit v1.2.3