{% macro modal_message(modal_data) -%} {%- endmacro %} {% macro table(table_dict, nrows) -%} {% for colname in table_dict.keys() %} {% if loop.first %} {% elif loop.last %} {% else %} {% endif %} {% endfor %} {% for i in range(0, nrows) %} {% if loop.first %} {% elif loop.last %} {% else %} {% endif %} {% for key in table_dict.keys() %} {% if loop.first %} {% else %} {% endif %} {% endfor %} {% endfor %}
{{ colname | e }} {{ colname | e }}{{ colname | e }}
{{ table_dict[key][i] | e}}{{ table_dict[key][i] | e}}
{%- endmacro %}