summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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