Permalink
Browse files

Merge pull request #6 from frioux/patch-1

Fix Jemplate to work with Template::Toolkit 2.23 and newer
  • Loading branch information...
2 parents 8adf95b + fe0ca12 commit 68fcf03a319f71a54435c4bd68b10afeb36a276f @ingydotnet committed Mar 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Jemplate/Directive.pm
@@ -9,6 +9,12 @@ our $WHILE_MAX = 1000;
# only true when inside JAVASCRIPT blocks
our $INJAVASCRIPT = 0;
+sub new {
+ my $class = shift;
+
+ return bless {}, $class
+}
+
sub template {
my ($class, $block) = @_;

0 comments on commit 68fcf03

Please sign in to comment.