{% import "macros.html" as ui %} {# The icon comes before the link: on branches it opens/closes the branch, the name navigates. Packages and folders show a folder, modules (files) a file, other entities their kind symbol. A branch is remembered by its place in the tree (`place`): the same entity can sit in several. #} {% macro link(item) %} {% if item.link %} {{- item.name -}} {%- else %}{{ item.name }}{% endif %} {% endmacro %} {% macro node(item, place) %}