{% load wagtailadmin_tags %} {% with caption=table.get_caption %} {% if caption %} {{ caption }} {% endif %} {% endwith %} {% if table.has_column_widths %} {% for column in table.columns.values %} {% endfor %} {% endif %} {% for column in table.columns.values %} {% component column.header %} {% endfor %} {% for row in table.rows %} {% for cell in row.values %} {% component cell %} {% endfor %} {% endfor %}