Skip to content

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

@jacobmischka

Description

@jacobmischka

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions