{% for (i, component) in path.iter().enumerate() %}
{% if i == path.len() - 1 %}
{{ component }}
{% else %}
{{ component }}
{% endif %}
{% endfor %}
{% for entry in entries %}
{% match entry %}
{% when mpd::Entry::Song with { name, path, artist } %}
music_note
{{ name }}
{{ artist }}
{% when mpd::Entry::Directory with { name, path }%}
folder{{ name }}
{% when mpd::Entry::Playlist with { name, path } %}
playlist_play{{ name }}
{% endmatch %}
{% endfor %}