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
in python:
env = Environment(loader=FileSystemLoader("templates")) env.globals["enumerate"] = enumerate
in template:
{% for k,v in enumerate(list) %} {% endfor %}