{% include "testapp/item_count.html" %} {% for item in items %}{{ item.parent.category }}{% endfor %}