Skip to content
Browse files

Fix Jemplate to work with Template::Toolkit 2.23 and newer

  • Loading branch information...
1 parent 8adf95b commit fe0ca1212b992234828315733edbb185fa6bebb1 @frioux frioux committed Mar 5, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/Jemplate/Directive.pm
View
6 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 fe0ca12

Please sign in to comment.
Something went wrong with that request. Please try again.