{% macro table_list(div_id, div_class, title, data, exclude_names=[]) %}

    <style>
        .break-word   { word-break: break-all; }
        .table-format {     }
    </style>


    <div id="{{ div_id }}" class="{{ div_class }}">
        <h2>{{ title }}</h2>
        <table class="table table-striped table-hover table-format">
            <thead>
                <tr>
                    {% if data %}
                        {% for name in data[0].keys() %}
                            {% if name not in exclude_names %}
                                <th>{{ name }}</th>
                            {% endif %}
                        {% endfor %}
                    {% endif %}
                </tr>
            </thead>
            <tbody>
                {% for row in data %}
                    <tr>
                        {% for name, value in row.items() %}
                            {% if name not in exclude_names %}
                                <td class="{{ name }}">{{ value }}</td>
                            {% endif %}
                        {% endfor %}
                    </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
{% endmacro %}