{% import 'components/menu_labels.html' as ml with context %} {# we need to use "with context" to disable cache, needed for i18n #} {% macro menu(menus, class='') %} {% for name,url in menus %} {{ml.label[name]}} {% endfor %} {% if caller is defined %} {{ caller()}} {% endif %} {% endmacro %}