{% match self %} {% when Node::Root { children } %} {% for child in children %} {{ child|safe }} {% endfor %} {% when Node::Directory { name, children, license } %}

File/Directory: {{ name }}

{% if let Some(license) = license %}

License: {{ license.spdx }}

{% for copyright in license.copyright.iter() %}

Copyright: {{ copyright }}

{% endfor %} {% endif %} {% if !children.is_empty() %}

Exceptions:

{% for child in children %} {{ child|safe }} {% endfor %} {% endif %}
{% when Node::File { name, license } %}

File/Directory: {{ name }}

License: {{ license.spdx }}

{% for copyright in license.copyright.iter() %}

Copyright: {{ copyright }}

{% endfor %}
{% when Node::Group { files, directories, license } %}

File/Directory: {% for name in files %} {{ name }} {% endfor %} {% for name in directories %} {{ name }} {% endfor %}

License: {{ license.spdx }}

{% for copyright in license.copyright.iter() %}

Copyright: {{ copyright }}

{% endfor %}
{% endmatch %}