Made default compile dir not unix specific

Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
This commit is contained in:
vti
2008-11-11 21:57:49 +01:00
committed by Ask Bjørn Hansen
parent 0a42dd4f90
commit bbabbf9ac1
2 changed files with 5 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
Revision history for MojoX-Renderer-TT
- Made default compile dir not Unix specific (Viacheslav
Tikhanovskii)
0.10 November 12, 2008
- Update to work with named parameters in new version of Mojo
- Instead of "tx" pass the context in the "c" variable

View File

@@ -6,6 +6,7 @@ use base 'Mojo::Base';
use Template ();
use Carp ();
use File::Spec ();
our $VERSION = '0.10';
@@ -32,7 +33,7 @@ sub _init {
my %config = (
COMPILE_EXT => '.ttc',
COMPILE_DIR => ($dir || "/tmp"),
COMPILE_DIR => ($dir || File::Spec->tmpdir),
UNICODE => 1,
ENCODING => 'utf-8',
CACHE_SIZE => 128,