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

Using @index within [ ] tag #632

Closed
BrewDawg opened this issue Oct 19, 2013 · 1 comment
Closed

Using @index within [ ] tag #632

BrewDawg opened this issue Oct 19, 2013 · 1 comment

Comments

@BrewDawg
Copy link

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 ...

@kpdecker
Copy link
Collaborator

This is tracked under #569 with a work around for the existing codebase.

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