Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for each with block params #16

Merged
merged 4 commits into from
May 2, 2021
Merged

Conversation

thekid
Copy link
Member

@thekid thekid commented May 2, 2021

Example:

<!-- Using block params -->
{{#each items as |item index|}}
  {{index}}: {{item.name}}
{{/each}}

<!-- Equivalent -->
{{#each items}}
  {{@index}}: {{name}}
{{/each}}

See handlebars-lang/handlebars.js#906

@thekid thekid merged commit 558a255 into master May 2, 2021
@thekid thekid deleted the feature/each-with-params branch May 2, 2021 12:15
@thekid
Copy link
Member Author

thekid commented May 2, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant