Skip to content

Instantly share code, notes, and snippets.

@sashainparis
sashainparis / knp_menu_bootstrap.html.twig
Last active April 19, 2018 13:20
Bootstrap Dropdown menu for KnpMenuBundle. Includes submenus.
{% extends 'knp_menu.html.twig' %}
{#
LIST
==== #}
{% block list %}
{% import 'knp_menu.html.twig' as macroattr %}
<div class="{{- listAttributes.class }}"> </div>
{% if item.hasChildren and item.displayChildren %}