Skip to content

Instantly share code, notes, and snippets.

@thamas
Created April 29, 2016 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thamas/f89e9fbb3d0dcd11ed284d7bae9aeb08 to your computer and use it in GitHub Desktop.
Save thamas/f89e9fbb3d0dcd11ed284d7bae9aeb08 to your computer and use it in GitHub Desktop.
create class using memu_name
{{ menus.menu_links(items, attributes, 0, menu_name) }}
{% macro menu_links(items, attributes, menu_level, menu_name) %}
{% import _self as menus %}
{%
set menu_classes = [
'c-menu-' ~ menu_name|clean_class,
]
%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment