aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-08 17:27:37 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-08 17:27:37 -0400
commit2a99ebf2766a08f8d68a82255d1518ecac73ec84 (patch)
treeb92d617498472a2dd497b172f855c4c54651c4b2 /IkiWiki
parent93ab004cc23e183199d760f9ecd5afee260c47e9 (diff)
downloadikiwiki-2a99ebf2766a08f8d68a82255d1518ecac73ec84.tar
ikiwiki-2a99ebf2766a08f8d68a82255d1518ecac73ec84.tar.gz
underlay: Also allow configuring additional directories to search for template files in.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/underlay.pm11
1 files changed, 9 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/underlay.pm b/IkiWiki/Plugin/underlay.pm
index 380d418fb..c59935672 100644
--- a/IkiWiki/Plugin/underlay.pm
+++ b/IkiWiki/Plugin/underlay.pm
@@ -27,14 +27,21 @@ sub getsetup () {
safe => 0,
rebuild => 1,
},
+ add_templates => {
+ type => "string",
+ default => [],
+ description => "extra template directories to add",
+ advanced => 1,
+ safe => 0,
+ rebuild => 1,
+ },
}
sub checkconfig () {
- return unless exists $config{add_underlays};
-
foreach my $dir (@{$config{add_underlays}}) {
add_underlay($dir);
}
+ push @{$config{templatedirs}}, @{$config{add_templates}};
}
1;