{%- for record in collection %} {%- snippet collection.serializer.record_template, record=record, collection=collection -%} {% endfor -%}