summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/wikistatedir.pm28
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