I want to be able to output the current loop iteration to my template.
According to the docs: http://wsgiarea.pocoo.org/jinja/docs/loops.html, there is a loop.count
if you are using django use forloop.counter instead of loop.counter
forloop.counter
loop.counter
{% for user in userlist %} {{ user }} {{forloop.counter}} {% if forloop.counter == 1 %} This is the First user {% endif %} {% endfor %}