From f8bdfdaa2d54dbf7535cf395eca09bd45dc5feb0 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 15 Jun 2011 16:07:47 +0200 Subject: Add plugin underlaydirbase to allow setting underlaydirbase to configfile. --- IkiWiki/Plugin/underlaydirbase.pm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 IkiWiki/Plugin/underlaydirbase.pm (limited to 'IkiWiki/Plugin') 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 + +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 -- cgit v1.2.3