{% for i, post in enumerate(posts) %} {% module BlogPost(post) %} {% if i < (len(posts) - 1) %}
{% end %} {% end %}