Get the current and next value in a Jinja for loop
<p>Is there a way to iterate over a list in Jinja2 that can access the nth and (n+1) th element in a single iteration?</p>

<pre><code>{% for x in my_list %}

&lt;!-- print the current and the (current+1) --&gt;
{{x}}, {{x+1}} &lt;-- this is wrong but hopefully highlights the problem

{% endfor %}
</code></pre>

<p>Also, does the for loop allow for a "step" increment?</p>