{% macro build_node(node, style="", allow_hover=True) %} {% with has_children = node.get_children(show_in_menu=True).count() %}
  • {{node.title}} {{build_main_nodes(parent=node)}}
  • {% endwith %} {% endmacro %} {% macro build_main_nodes(parent=None, nodes=None) %} {% if not parent and nodes %} {% elif parent %} {% endif %} {% endmacro %} {% macro build_nodes(nodes)%} {% endmacro %}