Permalink
Browse files

Fix very bad bug - caching in template_toolkit didn't work

  • Loading branch information...
Perlover committed Sep 26, 2012
1 parent e1760ad commit 4e504c47d02cbde08ae0e77da8d7c614b1a7d5b6
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/Dancer.pm
  2. +1 −1 lib/Dancer/Template/TemplateToolkit.pm
View
@@ -5,7 +5,7 @@ use warnings;
use Carp;
use Cwd 'realpath';
-our $VERSION = '1.90';
+our $VERSION = '1.91';
our $AUTHORITY = 'SUKRIA';
use Dancer::App;
@@ -41,7 +41,7 @@ sub init {
$tt_config->{INCLUDE_PATH} ||= setting('views');
- $_engine = $class->new(%$tt_config);
+ $_engine = $_engine || $class->new(%$tt_config);
}
sub render {

0 comments on commit 4e504c4

Please sign in to comment.