Add default INCLUDE_PATH (templates)

This commit is contained in:
Ask Bjørn Hansen
2008-12-09 17:19:43 -08:00
parent e779579347
commit 91a817b322
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
Revision history for MojoX-Renderer-TT
0.20
- Updates to work with Mojo 0.9
- Add default INCLUDE_PATH
- Made default compile dir not Unix specific (Viacheslav
Tikhanovskii)

View File

@@ -8,7 +8,7 @@ use Template ();
use Carp ();
use File::Spec ();
our $VERSION = '0.10';
our $VERSION = '0.20';
__PACKAGE__->attr('tt', chained => 1);
@@ -32,6 +32,7 @@ sub _init {
# take and process options :-)
my %config = (
( $mojo ? (INCLUDE_PATH => $mojo->home->rel_dir('templates') ) : () ),
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || File::Spec->tmpdir),
UNICODE => 1,