Skip to content

Commit ebe5ad0

Browse files
author
Stefan Geneshky
committed
Add die if template not found
1 parent d6f8a31 commit ebe5ad0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Changes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2013-08-12: Version 0.301
2+
- Add die if template not found

lib/Kelp/Module/Template/Toolkit.pm

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package Kelp::Module::Template::Toolkit;
22
use Kelp::Base 'Kelp::Module::Template';
33
use Template;
44

5-
our $VERSION = 0.02;
5+
our $VERSION = 0.301;
66

77
attr ext => 'tt';
88

@@ -14,7 +14,8 @@ sub build_engine {
1414
sub render {
1515
my ( $self, $template, $vars, @rest ) = @_;
1616
my $output;
17-
$self->engine->process( $template, $vars, \$output, @rest );
17+
$self->engine->process( $template, $vars, \$output, @rest )
18+
or die $self->engine->error();
1819
return $output;
1920
}
2021

0 commit comments

Comments
 (0)