Skip to content

Instantly share code, notes, and snippets.

@allusis
Created November 3, 2016 03:31
Show Gist options
  • Save allusis/7e0473c47e8d34cc857feffc5ec1b043 to your computer and use it in GitHub Desktop.
Save allusis/7e0473c47e8d34cc857feffc5ec1b043 to your computer and use it in GitHub Desktop.
Jade Nav
block link
-var selected = '';
-var menu = { 'Dashboard': './dashboard.html', 'Inspections': './inspections.html', 'VIAs': './vias.html', 'Reports': './reports.html', 'Templates': './templates-manage.html' };
each val, key in menu
if selected === key
a.active(href=val, title=key, id=key)
span(class='icm icon-' + key)
span.name=key
else
a(href=val, title=key, id=key)
span(class='icm icon-' + key)
span.name=key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment