{% load wagtailtables_tags %} {% get_table_data self.table_data as t_data %} {% if self.header_row %} {% for col in t_data.data.0 %} {% endfor %} {% endif %} {% for row in t_data.data %} {% with rowcounter=forloop.counter0 %} {% if self.header_row and rowcounter == 0 %} {% else %} {% for col in row %} {% with colcounter=forloop.counter0 %} {% if self.header_col and colcounter == 0 %} {% else %} {% endif %} {% endwith %} {% endfor %} {% endif %} {% endwith %} {% endfor %}
{{col}}
{{col|safe}}{{col|safe}}