{% macro render_link_text(node) %} {% if node.icon_class %}{% endif %}{{ node.label | trim }} {% endmacro %} {% macro render_node(node, expand_to_current) -%} {# render a node (and its children, if appropriate) #} {% set NODE_LEAF = 1 %} {% if node.node_type == NODE_LEAF %}