diff options
Diffstat (limited to 'lib/Text/Handlebars/Compiler.pm')
-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; |