{% if title %}
    <p class="h4">{{ title }}</p>
{% endif %}

<div class="table-div" style="overflow-x:auto">
    {{ table }}
</div>

{% if caption %}
    <div class="caption text-center text-muted">
        {{ caption }}
    </div>
{% endif %}