{# Notes of a group as a tree: each type folds (closed at first; live.js keeps open the ones opened); its notes below it. A click on a note shows it in the right panel. Sent again, out of band, after a change made in the panel. #}
{% for name in tree_types %} {% set of_type = notes | selectattr("type", "equalto", name) | list %}
{{ name }} {{ of_type | length }} {{ note_types[name] }}
{% endfor %}