diff --git a/Changes b/Changes index e43796a..e648dbe 100644 --- a/Changes +++ b/Changes @@ -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 diff --git a/lib/MojoX/Renderer/TT.pm b/lib/MojoX/Renderer/TT.pm index 55be6cb..12f9144 100644 --- a/lib/MojoX/Renderer/TT.pm +++ b/lib/MojoX/Renderer/TT.pm @@ -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,