diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-08 14:46:18 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-08 14:46:18 -0500 |
commit | 27d3275ba73eedd3ebc831d7faa3ae15eb1080bf (patch) | |
tree | e58260f1b2428e0a5c0f7427f208ecc56011b7e1 /lib/Text/Handlebars | |
parent | 703ac3ef783a86eac77af2c402c6600c33e6a71c (diff) | |
download | text-handlebars-27d3275ba73eedd3ebc831d7faa3ae15eb1080bf.tar.gz text-handlebars-27d3275ba73eedd3ebc831d7faa3ae15eb1080bf.zip |
simplify
Diffstat (limited to 'lib/Text/Handlebars')
-rw-r--r-- | lib/Text/Handlebars/Compiler.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/Text/Handlebars/Compiler.pm b/lib/Text/Handlebars/Compiler.pm index 5ffe882..48aa6cc 100644 --- a/lib/Text/Handlebars/Compiler.pm +++ b/lib/Text/Handlebars/Compiler.pm @@ -147,6 +147,17 @@ sub _generate_partial { ); } +sub _generate_for { + my $self = shift; + my ($node) = @_; + + my @opcodes = $self->SUPER::_generate_for(@_); + return ( + @opcodes, + $self->opcode('nil'), + ); +} + __PACKAGE__->meta->make_immutable; no Any::Moose; |