diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-09-08 17:27:37 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-09-08 17:27:37 -0400 |
commit | 2a99ebf2766a08f8d68a82255d1518ecac73ec84 (patch) | |
tree | b92d617498472a2dd497b172f855c4c54651c4b2 /IkiWiki | |
parent | 93ab004cc23e183199d760f9ecd5afee260c47e9 (diff) | |
download | ikiwiki-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.pm | 11 |
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; |