2 package IkiWiki::Plugin::underlay;
3 # Copyright © 2008 Simon McVittie <http://smcv.pseudorandom.co.uk/>
4 # Licensed under the GNU GPL, version 2, or any later version published by the
5 # Free Software Foundation
12 hook(type => "getsetup", id => "underlay", call => \&getsetup);
13 hook(type => "checkconfig", id => "underlay", call => \&checkconfig);
24 example => ["$ENV{HOME}/wiki.underlay"],
25 description => "extra underlay directories to add",
32 example => ["$ENV{HOME}/.ikiwiki/templates"],
33 description => "extra template directories to add",
41 if ($config{add_underlays}) {
42 foreach my $dir (@{$config{add_underlays}}) {
46 if ($config{add_templates}) {
47 push @{$config{templatedirs}}, @{$config{add_templates}};