leshill / handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
MIT License
649 stars 159 forks source link

does it supports new each blocks? #127

Closed lancedikson closed 7 years ago

lancedikson commented 9 years ago

Hello, does it supports new each blocks with separated contexts?

{{#each users as |user userId|}}
  Id: {{userId}} Name: {{user.name}}
{{/each}}
AlexRiedler commented 9 years ago

@lancedikson never seen that syntax ; documentation?

lancedikson commented 9 years ago

@AlexRiedler http://handlebarsjs.com/block_helpers.html#bloack-params

AlexRiedler commented 9 years ago

@lancedikson it should :)