{% macro render_icon_and_name(item) %} {% if item.name is defined %} {{ item.name }} {% else %} Unnamed Item: {{item}} {% endif %} {% endmacro %} {% macro render_children(children) %} {% for children in children %} {% if children.children %} {% elif children.identifier or children.warning or children.info %}
  • {{ render_icon_and_name(children) }}
  • {% else %}
  • {{ render_icon_and_name(children) }}
  • {% endif %} {% endfor %} {% endmacro %}