<table class="display datatable" data-source-url="{{ url }}"
       data-result-counter-id="{{ config.result_counter_id }}"
       data-page-length="{{ config.page_length }}">
    <thead>
        <tr>
            {% for column in columns %}
            <th data-name="{{ column.label|slugify }}"{{ column.attributes|safe }}>{{ column.label }}</th>
            {% endfor %}
        </tr>
    </thead>
</table>

<table class="display datatable" data-source-url="{{ url }}"
       data-result-counter-id="{{ config.result_counter_id }}"
       data-page-length="{{ config.page_length }}">
    <thead>
        <tr>
            {% for column in datatable %}
                {{ column }}
            {% endfor %}
        </tr>
    </thead>
</table>

Switch structure template to iterate datatable
Switch structure template to iterate datatable
