Skip to content

Instantly share code, notes, and snippets.

@charafsalmi
charafsalmi / list.html.twig
Created March 3, 2017 04:36 — forked from garak/list.html.twig
Twig recursive macro
{% macro recursiveCategory(category) %}
{% import _self as self %}
<li>
<h4><a href="{{ path(category.route, category.routeParams) }}">{{ category }}</a></h4>
{% if category.children|length %}
<ul>
{% for child in category.children %}
{{ self.recursiveCategory(child) }}
{% endfor %}
@charafsalmi
charafsalmi / webdev_online_resources.md
Created July 23, 2018 16:36 — forked from mohcinebe/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)