diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-10-05 20:12:49 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-10-05 20:12:49 -0500 |
commit | cb8f04e5ce31498009c3591f0ca5a69fdce6c5b8 (patch) | |
tree | 2c940cb98b2f4f0df435f84020bc56d35ea8aad3 /lib/Text | |
parent | b9fc4f4271752f0938fb806e1bd57db30f8ed0a2 (diff) | |
download | text-handlebars-cb8f04e5ce31498009c3591f0ca5a69fdce6c5b8.tar.gz text-handlebars-cb8f04e5ce31498009c3591f0ca5a69fdce6c5b8.zip |
rename a few things
Diffstat (limited to 'lib/Text')
-rw-r--r-- | lib/Text/Handlebars/Compiler.pm | 2 | ||||
-rw-r--r-- | lib/Text/Xslate/Syntax/Handlebars.pm | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/Text/Handlebars/Compiler.pm b/lib/Text/Handlebars/Compiler.pm index dd70e65..8c89b06 100644 --- a/lib/Text/Handlebars/Compiler.pm +++ b/lib/Text/Handlebars/Compiler.pm @@ -11,7 +11,7 @@ has '+syntax' => ( sub define_helper { shift->parser->define_helper(@_) } -sub _generate_block { +sub _generate_block_body { my $self = shift; my ($node) = @_; diff --git a/lib/Text/Xslate/Syntax/Handlebars.pm b/lib/Text/Xslate/Syntax/Handlebars.pm index 2aa9bfb..c963a87 100644 --- a/lib/Text/Xslate/Syntax/Handlebars.pm +++ b/lib/Text/Xslate/Syntax/Handlebars.pm @@ -431,18 +431,18 @@ sub std_block { ), ); - my $loop_var = $self->symbol('(block)')->clone(arity => 'variable'); + my $loop_var = $self->symbol('(loop_var)')->clone(arity => 'variable'); my $body_block = [ $self->make_ternary( $self->call('(is_falsy)', $name->clone), $symbol->clone( - arity => 'block', + arity => 'block_body', first => undef, second => [ $block{else}{body} ], ), $symbol->clone( - arity => 'block', + arity => 'block_body', first => [ $self->call( '(new_vars_for)', @@ -650,8 +650,8 @@ sub iterator_index { return $self->symbol('(iterator)')->clone( arity => 'iterator', - id => '$~(block)', - first => $self->symbol('(block)'), + id => '$~(loop_var)', + first => $self->symbol('(loop_var)')->clone, ), } |