summaryrefslogtreecommitdiffstats
path: root/lib/Text/Xslate
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-10-05 18:38:21 -0500
committerJesse Luehrs <doy@tozt.net>2012-10-05 18:38:21 -0500
commitced746f813885bfd27c8548bec5457e80dc4677c (patch)
tree9017cd92bb068617ef7c7759ebce9bf9e8611ead /lib/Text/Xslate
parent6ff12b877afbda62ad2cb6d748487e7674e5c396 (diff)
downloadtext-handlebars-ced746f813885bfd27c8548bec5457e80dc4677c.tar.gz
text-handlebars-ced746f813885bfd27c8548bec5457e80dc4677c.zip
since functions and helpers are different, drop this special case
Diffstat (limited to 'lib/Text/Xslate')
-rw-r--r--lib/Text/Xslate/Syntax/Handlebars.pm7
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;
}