{% macro table_elm(elm, col_class, tag='td') -%} {% if elm is mapping %} <{{tag}} {% if (col_class|length) > 0 or elm.class is defined%}class="{{col_class}} {{elm.class}}"{% endif %} {% if elm.colspan is defined %}colspan="{{elm.colspan}}"{% endif %} {% if elm.rowspan is defined %}rowspan="{{elm.rowspan}}"{% endif %} >{{elm.val}} {% else %} <{{tag}} {% if (col_class|length) > 0 %}class="{{col_class}}"{% endif %} >{{elm}} {% endif %} {%- endmacro%}
Connections
{% if table.thead is defined%} {% for row in table.thead %} {% for col in row %} {{table_elm(col, table.col_classes[loop.index0], 'th')}} {% endfor %} {% endfor %} {% endif %} {% for row in table.tbody %} {% for col in row %} {{table_elm(col, table.col_classes[loop.index0])}} {% endfor %} {% endfor %}