{% import 'macro' as macro %} {% for chart in charts %} {{ macro.render_chart_content(chart) }} {% endfor %}