{% set table_id = 1 %} {% macro datatables(label, buttons=[]) %} {% set id = 'table' + table_id|string %} {% set table_id = table_id + 1 %}