Use app->renderer->paths to find template directories

Closes #20
This commit is contained in:
Ask Bjørn Hansen
2012-06-05 15:53:08 -07:00
parent 618adbd774
commit bdc9f56452

View File

@@ -40,7 +40,10 @@ sub _init {
# take and process options :-)
my %config = (
($app ? (INCLUDE_PATH => abs_path($app->home->rel_dir('templates'))) : ()),
( $app
? (INCLUDE_PATH => (join ":", map { abs_path($_) } @{$app->renderer->paths}))
: ()
),
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
UNICODE => 1,