{% macro attributes(attributes) %} {% for name, value in attributes %} {%- if value is not none and value is not sameas(false) -%} {{- ' %s="%s"'|format(name, value is sameas(true) ? name|e : value|e)|raw -}} {%- endif -%} {%- endfor -%} {% endmacro %} {% block compressed_root %} {% spaceless %} {{ block('root') }} {% endspaceless %} {% endblock %} {% block root %} {% set listAttributes = item.childrenAttributes %} {{ block('list') -}} {% endblock %} {% block list %} {% if item.hasChildren and options.depth is not sameas(0) and item.displayChildren %}