Is it possible to get the current loop index using the eco template engine?
For example in Jinja2 you can do
{% for var in array %}
{{ loop.index0 }}
{% endfor %}
If not is there a more idiomatic way of getting at the index?
Is it possible to get the current loop index using the eco template engine?
For example in Jinja2 you can do
{% for var in array %}
{{ loop.index0 }}
{% endfor %}
If not is there a more idiomatic way of getting at the index?
From the CoffeeScript website:
Could also be written as
For the eco template, something like this should do it: