From 27d3275ba73eedd3ebc831d7faa3ae15eb1080bf Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Mon, 8 Oct 2012 14:46:18 -0500 Subject: simplify --- lib/Text/Handlebars/Compiler.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lib/Text/Handlebars/Compiler.pm') 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; -- cgit v1.2.3-54-g00ecf