{# The icon comes before the link: on branches it opens/closes the branch, the name navigates. Packages show a folder, modules (files) a file, other entities their kind symbol. #} {% macro icon(item) %} {{ item.symbol }} {% endmacro %} {% macro link(item) %} {{- item.name -}} {% endmacro %} {% macro node(item) %}
  • {% if item.children %} {# Packages and modules start open; classes open only on the path to the current page. #}
    {{ icon(item) }}{{ link(item) }}
    {% else %}
    {{ icon(item) }}{{ link(item) }}
    {% endif %}
  • {% endmacro %}