Answer the question
In order to leave comments, you need to log in
How to substitute iteration number in Mustache template?
Good afternoon.
The mustache template has the ability to display the first element of the list like so: {{@val.values.0.name}} . Everything works so well. But I have this construction in a loop:
{{#loop}}
<tr>
{{#lines}} <td>{{@val.values.0.name}}</td> {{/lines}}
</tr>
{{/loop}}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question