summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2011-06-15 16:07:47 +0200
committerJonas Smedegaard <dr@jones.dk>2013-10-13 00:52:57 +0200
commitf8bdfdaa2d54dbf7535cf395eca09bd45dc5feb0 (patch)
tree64994cdb8d4e2979cfa751e40ab1d8deb6c9f342 /IkiWiki
parent9c0ec843dda48af69ad30d09443157a6b0936511 (diff)
Add plugin underlaydirbase to allow setting underlaydirbase to configfile.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/underlaydirbase.pm30
1 files changed, 30 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/underlaydirbase.pm b/IkiWiki/Plugin/underlaydirbase.pm
new file mode 100644
index 0000000..adc4749
--- /dev/null
+++ b/IkiWiki/Plugin/underlaydirbase.pm
@@ -0,0 +1,30 @@
+#!/usr/bin/perl
+# Underlaydirbase plugin.
+# by Jonas Smedegaard <dr@jones.dk>
+
+package IkiWiki::Plugin::underlaydirbase;
+
+use warnings;
+use strict;
+use IkiWiki 3.00;
+
+my ($master_language_code, $master_language_name);
+
+sub import {
+ hook(type => "getsetup", id => "underlaydirbase", call => \&getsetup);
+}
+
+sub getsetup () {
+ return
+ plugin => {
+ safe => 0,
+ rebuild => 1,
+ },
+ underlaydirbase => {
+ type => "string",
+ safe => 0,
+ rebuild => 1,
+ },
+}
+
+1