-
Notifications
You must be signed in to change notification settings - Fork 190
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
Get element from array by index #80
Comments
Hi No, there is no such feature today. You can use the I never had such a need... Would you mind giving an example where such a possibility would be useful? |
All right. I'm closing this issue right now. GRMustache implements the mustache templating language as defined by https://github.com/mustache/spec. And the spec, so far, as no support for accessing array elements by index. I recommend you open an issue in the very repository of the spec: https://github.com/mustache/spec/issues |
Sorry I didn't answer you sooner.
I want to display:
So my idea was to go through the first array then use the index to get the required object from the second array. Do you have an alternative way without using the index? |
I get it. We could imagine some
It's quite possible, using
Where Yet a |
Thanks @groue for your answer. |
GRMustache 7.2 has shipped, with built-in |
The introduction of the GRMustache v7.3.0 has shipped without it, in order to restore compatibility. Below you'll find the documentation for the discontinued
|
Is there a way to get an element from an array using its index?
The text was updated successfully, but these errors were encountered: