template_paths config to allow easier override of web templates

This commit is contained in:
Oliver Gorwits
2017-05-06 17:59:50 +01:00
parent 273b49b9ce
commit 2c41b2925d
6 changed files with 32 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ register 'register_template_path' => sub {
return error "bad template path to register_template_paths";
}
push @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} },
unshift @{ config->{engines}->{netdisco_template_toolkit}->{INCLUDE_PATH} },
dir($path, 'views')->stringify;
};