From ced746f813885bfd27c8548bec5457e80dc4677c Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 5 Oct 2012 18:38:21 -0500 Subject: since functions and helpers are different, drop this special case --- lib/Text/Xslate/Syntax/Handlebars.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/Text/Xslate/Syntax/Handlebars.pm') diff --git a/lib/Text/Xslate/Syntax/Handlebars.pm b/lib/Text/Xslate/Syntax/Handlebars.pm index a24fa00..ff1eefb 100644 --- a/lib/Text/Xslate/Syntax/Handlebars.pm +++ b/lib/Text/Xslate/Syntax/Handlebars.pm @@ -304,12 +304,13 @@ sub nud_name { my $call = $self->call($name); + if ($name->is_helper) { + push @{ $call->second }, $self->vars; + } + if ($self->token->is_defined) { push @{ $call->second }, $self->expression(0); } - elsif ($name->id ne 'mark_raw') { - push @{ $call->second }, $self->vars; - } return $call; } -- cgit v1.2.3-54-g00ecf