Permalink
Browse files

[Ratel] '[%=' -> '[% print ' sugar

  • Loading branch information...
1 parent 061b062 commit c9f4282136716cf34087f998edef47abf428515b @masak committed Jun 9, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Ratel.pm
View
@@ -11,6 +11,7 @@ class Ratel {
my $index = 0;
$!source = $text;
my $source = "%]$text[%";
+ $source.=subst('[%=', '[% print ', :g);
@!hunks = $source.comb(/'%]' (.*?) '[%'/);
$!compiled
= $source.subst(/(['%]' | ^ ] .*? [ $ | '[%' ])/,

0 comments on commit c9f4282

Please sign in to comment.