Let me preface by I am just starting Python so if this is really a simple question ^_^
I have a html file with the following content:
{%for d in results%}
<div class="twt">
<img src="{{ d.profile_image_url }}" width="48px" height="48px" /> <span> {{ d.text }} </span>
<span class="date">{{ d.created_at }}</span>
</div>
{% endfor %}
which works well but I also would like to declare a variable on this page. Let's say for this example, we can it RowNumber which will increment for each d displayed, spitting out the current RowNumber.
I tried doing:
{{ RowNumber = 0}}
{{ RowNumber ++ }}
But it doesn't seem to allow me to declare RowNumber.