Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Initial import of template sketch.

  • Loading branch information...
commit e238f17845c673db18c9cfa3bda44053f46c49f4 1 parent 5f23a82
Stephen Weeks tene authored committed
Showing with 1 addition and 6 deletions.
  1. +1 −6 lib/Ratel.pm
7 lib/Ratel.pm
View
@@ -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;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.