How to output loop.counter in python jinga template?
<p>I want to be able to output the current loop iteration to my template. </p>

<p>According to the docs: <a href="http://wsgiarea.pocoo.org/jinja/docs/loops.html" rel="nofollow">http://wsgiarea.pocoo.org/jinja/docs/loops.html</a>, there is a loop.counter variable that I am trying to use.</p>

<p>I have the following:</p>

<pre><code>&lt;ul&gt;
{% for user in userlist %}
    {% for user in userlist %}
  &lt;li&gt;{{ user }} {{loop.counter}}&lt;/li&gt;
                {% if loop.counter == 1 %}
                    This is the First user
                {% endif %}
{% endfor %}
&lt;/ul&gt;
</code></pre>

<p>Though nothing is being output to my template. What is the correct syntax?</p>
