Skip to content

Instantly share code, notes, and snippets.

Charaf Salmi charafsalmi

Block or report user

Report or block charafsalmi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@charafsalmi
charafsalmi / webdev_online_resources.md
Created Jul 23, 2018 — forked from mohcinebe/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
View webdev_online_resources.md
@charafsalmi
charafsalmi / list.html.twig
Created Mar 3, 2017 — forked from garak/list.html.twig
Twig recursive macro
View list.html.twig
{% 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 %}
You can’t perform that action at this time.