{% for entity in entities %}{% if entity.isBook %}{% include "book_template.txt" %}
{% else %}{% if entity.isPage %}{% include "page_template.txt" %}
{% endif %}{% endif %}{% endfor %}
