This commit is contained in:
Graham Ollis committed 2013-01-28 11:51:38 -05:00
1 parent a7da6f3292
commit 02fce2bfdd
1 file changed
+2 -4
+2 -4
View File
@@ -42,12 +42,10 @@ sub _init {
# take and process options :-) # take and process options :-)
my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : (); my @renderer_paths = $app ? map { abs_path($_) } grep { -d $_ } @{ $app->renderer->paths } : ();
push @renderer_paths, 'templates';
my %config = ( my %config = (
( @renderer_paths > 0 INCLUDE_PATH => \@renderer_paths,
? (INCLUDE_PATH => [@renderer_paths, 'templates'])
: (INCLUDE_PATH => ['templates'])
),
COMPILE_EXT => '.ttc', COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)), COMPILE_DIR => ($dir || abs_path(File::Spec->tmpdir)),
UNICODE => 1, UNICODE => 1,