{# Table — striped variant. Expects: { caption, headers (csv), rows (lines of | separated cells) } #}
<table class="bm-table bm-table--striped">
    {% if caption %}<caption>{{ caption }}</caption>{% endif %}
    {% if headers %}
        <thead>
            <tr>
                {% for h in headers|split(',') %}
                    <th>{{ h|trim }}</th>
                {% endfor %}
            </tr>
        </thead>
    {% endif %}
    {% if rows %}
        <tbody>
            {% for line in rows|split('\n') %}
                {% if line|trim != '' %}
                    <tr>
                        {% for cell in line|split('|') %}
                            <td>{{ cell|trim }}</td>
                        {% endfor %}
                    </tr>
                {% endif %}
            {% endfor %}
        </tbody>
    {% endif %}
</table>
