diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-05 18:38:21 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-05 18:38:21 -0500 |
commit | ced746f813885bfd27c8548bec5457e80dc4677c (patch) | |
tree | 9017cd92bb068617ef7c7759ebce9bf9e8611ead /lib/Text/Xslate/Syntax | |
parent | 6ff12b877afbda62ad2cb6d748487e7674e5c396 (diff) | |
download | text-handlebars-ced746f813885bfd27c8548bec5457e80dc4677c.tar.gz text-handlebars-ced746f813885bfd27c8548bec5457e80dc4677c.zip |
since functions and helpers are different, drop this special case
Diffstat (limited to 'lib/Text/Xslate/Syntax')
-rw-r--r-- | lib/Text/Xslate/Syntax/Handlebars.pm | 7 |
1 files changed, 4 insertions, 3 deletions
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; } |