Skip to content

Instantly share code, notes, and snippets.

@pulponair
Created November 13, 2014 13:02
Show Gist options
  • Save pulponair/e8dd187c9475ee1abc4d to your computer and use it in GitHub Desktop.
Save pulponair/e8dd187c9475ee1abc4d to your computer and use it in GitHub Desktop.
<f:render section="categoryList" arguments="{categories: categories, isFirstLevel: 1}" />
<f:section name="categoryList">
<ul>
<f:for each="{categories}" as="category">
<li>
{category.title}
<f:if condition="{category.children}">
<f:render section="categoryList" arguments="{categories: category.children, isFirstLevel: 0}" />
</f:if>
</li>
</f:for>
</ul>
</f:section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment