Add default INCLUDE_PATH (templates)
This commit is contained in:
3
Changes
3
Changes
@@ -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)
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user