<table>
    <thead>
        {% for col in table.header %}
            <th>{{ col }}</th>
        {% endfor %}
    </thead>
    <tbody>
        {% for row in table.rows %}
            <tr>
                {% for col in row %}
                    {% if forloop.counter == 1 %}
                        <th>{{ col }}</th>
                    {% else %}
                        <td>{{ col }}</td>
                    {% endif %}
                {% endfor %}
            </tr>
        {% endfor %}
    </tbody>
</table>
