{% for resource in resources %} {% if forloop.first %} {% else %} {% endif %} {% endfor %}