Closed IronBrotherz closed 5 years ago
I want to output something like:
But I have no idea how to do a counter with my loop. Right now I have
{% for sale in sales %} <p>{{sale.amount}}</p> {% endfor %}
{% for sale in sales %}
{{loop.index}} {{sale.amount}}
{% endfor %}
I want to output something like:
1 10,000
2 12,000
3 56,000
But I have no idea how to do a counter with my loop. Right now I have