Compare commits

...
Author SHA1 Message Date
Ask Bjørn Hansen 6cae190a7a Prepare v0.21 to work with new Mojo's 2009-07-29 15:49:24 -07:00
giftnussandAsk Bjørn Hansen 165c3b39f2 Update stash key from 'template_path' to 'template' to match mojo change
Signed-off-by: Ask Bjørn Hansen <ask@develooper.com>
2009-07-29 15:44:10 -07:00
4 changed files with 9 additions and 5 deletions
+4
View File
@@ -1,5 +1,9 @@
Revision history for MojoX-Renderer-TT
0.21 July 29, 2009
- Update stash key from 'template_path' to 'template' to
match mojo change (Sebastian Knapp)
0.20 December 9, 2008
- Updates to work with Mojo 0.9
- Add default INCLUDE_PATH
+1 -1
View File
@@ -13,7 +13,7 @@ WriteMakefile(
PL_FILES => {},
PREREQ_PM => {
'Test::More' => 0,
'Mojo' => 0.9,
'Mojo' => 0.991237,
'Template' => 2.18,
},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
+2 -2
View File
@@ -8,7 +8,7 @@ use Template ();
use Carp ();
use File::Spec ();
our $VERSION = '0.20';
our $VERSION = '0.21';
__PACKAGE__->attr('tt', chained => 1);
@@ -52,7 +52,7 @@ sub _init {
sub _render {
my ($self, $renderer, $c, $output) = @_;
my $template_path = $c->stash->{template_path};
my $template_path = $c->stash->{template};
unless (
$self->tt->process(
+2 -2
View File
@@ -17,13 +17,13 @@ my $mt = MojoX::Renderer::TT->build;
my $output;
my $rv;
$c->stash->{template_path} = 't/render/template.tt2';
$c->stash->{template} = 't/render/template.tt2';
$rv = $mt->(undef, $c, \$output);
is($rv, 1);
is($output, "4\n");
$c->stash->{template_path} = 't/render/error.tt2';
$c->stash->{template} = 't/render/error.tt2';
$rv = $mt->(undef, $c, \$output);
is($rv, 0);
ok($output);