[viewBag] == {# Note: Only one levels of sublinks are supported by Bootstrap 3 #} {% set links = { 'home': ['Accueil', 'Accueil'], 'Actualité': ['blog/blog', 'Blog'], 'pages': { name: 'Pages', sublinks: { 'about': ['samples/about', 'About Us'], 'contact': ['samples/contact', 'Contact Us'], 'pricing-table': ['samples/pricing-table', 'Pricing Table'], 'services': ['samples/services', 'Services'], 'signin': ['samples/signin', 'Sign In'], 'register': ['samples/register', 'Register'], 'error': ['error', 'Error Page'], '404': ['404', '404 Page'], }, }, 'portfolio': { name: 'Portfolio', sublinks: { 'portfolio': ['portfolio/portfolio', 'Portfolio'], 'project': ['portfolio/project', 'Project'], }, }, 'ui-elements': ['ui-elements', 'UI Elements'], } %} {% macro render_menu(links) %} {% import _self as subnav %} {% for code, link in links %}