mixin menuItem(link, name)
li(class=(name==menu||name==subMenu) ? 'active' : '')
a(href=link)
span=name
mixin multiMenu(name)
li.treeview(class=name==menu ? 'active' : '')
a(href='#')
span=name
i.fa.fa-angle-left.pull-right
ul.treeview-menu(class=name==menu ? 'menu-open' : '')
each menu in attributes.menus
+menuItem(menu.link, menu.name)
ul.sidebar-menu
+menuItem('/', 'Dashboard')
+menuItem('/products', 'Products')