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

Nice-to-have: Destructuring in each blocks #888

Closed
jacobmischka opened this issue Oct 9, 2017 · 1 comment
Closed

Nice-to-have: Destructuring in each blocks #888

jacobmischka opened this issue Oct 9, 2017 · 1 comment

Comments

@jacobmischka
Copy link
Contributor

jacobmischka commented Oct 9, 2017

It would be handy if we could destructure the target item of the iterated array, ie

{{#each Array.from(map.entries()) as [key, value]}}
	...
{{/each}}

Currently, this results in ParseError: Expected name. REPL.

Vue supports this in their v-for directives, so it might be possible to reference that to get hints on how to properly parse it.

@stalkerg
Copy link
Contributor

stalkerg commented Oct 9, 2017

Recently I met this behavior too.

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

No branches or pull requests

2 participants