I\'m trying to make everything apart from the first element in an array have a CSS class using the Jade templating engine.
I was hoping I could do it like this, but no l
This is my solution. I'm using a mixin to pass the current active path and in the mixin I define the complete menu and always pass an if to check if the path is the active path.
mixin adminmenu(active)
ul.nav.nav-list.well
li.nav-header Hello
li(class="#{active=='/admin' ? 'active' : ''}")
a(href="/admin") Admin