summaryrefslogtreecommitdiffstats
path: root/lib/Text/Handlebars/Compiler.pm
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-08 14:46:18 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-08 14:46:18 -0500
commit27d3275ba73eedd3ebc831d7faa3ae15eb1080bf (patch)
treee58260f1b2428e0a5c0f7427f208ecc56011b7e1 /lib/Text/Handlebars/Compiler.pm
parent703ac3ef783a86eac77af2c402c6600c33e6a71c (diff)
downloadtext-handlebars-27d3275ba73eedd3ebc831d7faa3ae15eb1080bf.tar.gz
text-handlebars-27d3275ba73eedd3ebc831d7faa3ae15eb1080bf.zip
simplify
Diffstat (limited to 'lib/Text/Handlebars/Compiler.pm')
-rw-r--r--lib/Text/Handlebars/Compiler.pm11
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;