]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/underlay.pm
403 response may be a "not found" too
[git.ikiwiki.info.git] / IkiWiki / Plugin / underlay.pm
index 380d418fba9919b3023e391bed3237406424f76a..c599356728e39dddcf729f62cbe5e78ada939f50 100644 (file)
@@ -27,14 +27,21 @@ sub getsetup () {
                        safe => 0,
                        rebuild => 1,
                },
                        safe => 0,
                        rebuild => 1,
                },
+               add_templates => {
+                       type => "string",
+                       default => [],
+                       description => "extra template directories to add",
+                       advanced => 1,
+                       safe => 0,
+                       rebuild => 1,
+               },
 }
 
 sub checkconfig () {
 }
 
 sub checkconfig () {
-       return unless exists $config{add_underlays};
-
        foreach my $dir (@{$config{add_underlays}}) {
                add_underlay($dir);
        }
        foreach my $dir (@{$config{add_underlays}}) {
                add_underlay($dir);
        }
+       push @{$config{templatedirs}}, @{$config{add_templates}};
 }
 
 1;
 }
 
 1;