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