{% regroup loop by name as var %}{% for x in var %}{{ x.grouper }}{% for y in x.list %}{{ y.text }}{% endfor %}{% endfor %}