{% for item in stocks %} {% set myloop = loop %} {% include 'bench_jinja2_stock.html' with context %} {% endfor %}