Skip to content

Instantly share code, notes, and snippets.

Created February 13, 2014 11:00
Show Gist options
  • Save anonymous/8973215 to your computer and use it in GitHub Desktop.
Save anonymous/8973215 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