I have this loop in DotLiquid :
{% for page in Page -%} {{ page.Title }} <ul> {% for subpage in page.Pages -%} <li>{{ subpage.Title }}</li> {% endfor -%} </ul> {% endfor -%}
Each subpage object has the Pages property with other subpages in the list (for example, the first Page object.
How to write a recursive iteration over these subpages to create a complete tree?
source share