{% for t in table.columns[0] %}
{% for r in table.rows[0] %} | {% endfor %}
{% set index = loop.index0 %}
{% for col in table.columns %}{{col[index]}} | {% endfor %}
{% endfor %}
{% for row in table.rows %}
{% for t in row %}{{t}} | {% endfor %}
{% for tcell in table.data[loop.index0] %}{{tcell}} | {% endfor %}
{% endfor %}