Back to Rxjs

Descendants

apps/rxjs.dev/tools/transforms/templates/api/lib/descendants.html

7.8.2627 B
Original Source

{% macro renderDescendantList(descendants, docType, recursed) %} {% if descendants.length %}

{% for descendant in descendants %} - {$ descendant.name $} {$ renderDescendantList(descendant.descendants | filterByPropertyValue('docType', docType), docType, recursed) $} {% endfor %} {% endif %} {% endmacro -%} {%- macro renderDescendants(doc, docType, title='', recursed=true) %} {% set descendants = doc.descendants | filterByPropertyValue('docType', docType) %} {% if descendants.length %} {% if title %}

{$ title $}

{% endif %} {$ renderDescendantList(descendants, docType, recursed) $} {% endif %} {% endmacro %}