{% macro file_listing(git_url, git_sha, items) %} {% for item in items %}
{% if item.type == "directory" %}
{{ item.path|basename }}/
{{ file_listing(git_url, git_sha, item.children) }}
{% else %}
{{ item.path|basename }}
{{ item.size }}b
{{ item.sha }}
{% endif %}
{% endfor %} {% endmacro %}
{{ file_listing(root.git_url, root.git_sha, root.children) }}