Skip to content

Instantly share code, notes, and snippets.

@mitom
Forked from anonymous/gist:8973215
Created February 13, 2014 11:13
Show Gist options
  • Save mitom/8973360 to your computer and use it in GitHub Desktop.
Save mitom/8973360 to your computer and use it in GitHub Desktop.
{# Parent #}
{% set sidemenu = { 'items':[{ 'title':'Dashboard','path':'admin_dashboard','icon':'clip-home-3' }] }|merge(sidemenu) %}
{# Child #}
{% set sidemenu = {
'items':[
{
'title':'4 Level',
'icon':'clip-folder-open',
'items':[
{
'title':'Sub menu 1',
'icon':'clip-folder-open',
'items':[
{
'title':'Sub menu 2',
'icon':'clip-folder-open',
'items':[
{
'title':'Sub item',
'icon':'clip-folder-open'
}
]
}
]
}
]
}
]
} %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment