{% macro render_parts(parts) %}
  {% for part in parts %}
  <li class="part-item">
    <img src="{{ part.details.image512pxLink }}" alt="{{ part.details.name }}">
    <div>
      <strong>{{ part.details.shortName }}</strong>
      {% if part.parts|length > 0 %}
      <ul class="parts-tree">
        {{ render_parts(part.parts) }}
      </ul>
      {% endif %}
    </div>
  </li>
  {% endfor %}
{% endmacro %}
{{ render_parts(item.parts) }}
