{% macro day_menu(title, location_menu, fail_text) -%}

{{ title }}

{% if location_menu %}

{{ location_menu.date.strftime('%d.%m.%Y') }}

{{ get_menu(location_menu.menu.all()) }} {% else %}

{{ fail_text }}

{% endif %}
{% endmacro %} {% macro week_menu(title, location_menus, fail_text) -%}

{{ title }}

{% if location_menus %} {% for menu in location_menus %}

{{ menu.date.strftime('%A.%m.%Y') }}

{{ get_menu(menu.menu.all()) }} {% endfor %} {% else %}

{{ fail_text }}

{% endif %}
{% endmacro %} {% macro get_menu(menu) -%} {% endmacro %}