{% macro thead(columns) %} {% for column in columns %} {{ column }} {% endfor %} {% endmacro %} {% macro tbody(rows) %} {% for row in rows %} {% for column in row %} {{ column }} {% endfor %} {% endfor %} {% endmacro %} {% macro table(headers, rows, actions=None, classes="striped highlight") %} {% for header in headers %} {% endfor %} {% if actions %}{% endif %} {% for row in rows %} {% for cell in row %} {% endfor %} {% if actions %} {% endif %} {% endfor %}
{{ header }}Actions
{{ cell }} {% for action in actions %} {{ action.icon }} {% endfor %}
{% endmacro %}