Browse files

Initial import of template sketch.

  • Loading branch information...
1 parent 5f23a82 commit e238f17845c673db18c9cfa3bda44053f46c49f4 @tene tene committed with Jun 4, 2010
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Ratel.pm
View
7 lib/Ratel.pm
@@ -13,14 +13,9 @@ class Ratel {
$!compiled = $source.subst(/(['%]' | ^ ] .*? [ $ | '[%' ])/, {";\$.emit-hunk({$index++});"}, :g);
}
method emit-hunk(Int $i) {
- $.emit(@.hunks[$i][0]);
- }
- method emit($t) {
- $*RESULT ~= $t;
+ print @.hunks[$i][0];
}
method do(*%attrs) {
- my $*RESULT = '';
eval $.compiled;
- return $*RESULT;
}
}

0 comments on commit e238f17

Please sign in to comment.