Skip to content

Using @index within [ ] tag #632

Closed
Closed
@BrewDawg

Description

@BrewDawg

This would be great if Handlebars would allow you to use the @index within the [ ] syntax instead of a hard coded literal, for example

{{#each NavigationProperties}}
    {{StorageModels.Schema.AssociationsEnds.[@index].Role}}
{{/each}}

Notice how I would like to use the @index value, couldn't Handlebars look at the value passed into [ ] and if it's @index take it's value? This would be very useful ...

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