handlebars.java icon indicating copy to clipboard operation
handlebars.java copied to clipboard

Found issue to get @first, @last and @index in nested each.

Open ash4aque opened this issue 13 years ago • 0 comments

I encounter a problem where @last, @first and @index behaves differently inside an each as follows:

Scenario: {{#each hash-one}} ..... .....// if I use @index,@last and @first before the second each I m getting the correct value. {{#each hash-two}}...{{/each}} ..... .....// if I use @index,@last and @first after the second each I m getting nothing.. {{/each}}

Please let me know if I am doing something wrong.

ash4aque avatar Nov 20 '13 13:11 ash4aque