{% macro renderDescendants(doc, docType, title='', recursed=false) %} {% set descendants = doc.descendants | filterByPropertyValue('docType', docType) %} {% if descendants.length %} {% if title %}
{$ descendant.name $}
{$ renderDescendants(descendant, docType, '', true) $}