{# bfx/table.html — Data table macro #} {% macro data_table(headers, rows, empty_message="No data available.", attrs={}) %}
{% for header in headers %} {% endfor %} {% if rows %} {% for row in rows %} {% for cell in row %} {% endfor %} {% endfor %} {% else %} {% endif %}
{{ header }}
{{ cell }}
{{ empty_message }}
{% endmacro %}