Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baudehlo/9297a781b30d28fa99cd to your computer and use it in GitHub Desktop.
Save baudehlo/9297a781b30d28fa99cd to your computer and use it in GitHub Desktop.
nav
ul
li(class=selected == 'home' ? 'active':'') Home
li(class=selected == 'blog' ? 'active':'') Blog
li.dropdown
a(href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded='false')
| Dropdown
span.caret
ul.dropdown-menu(role='menu')
li: a(href='#') Action
li: a(href='#') Another action
li: a(href='#') Some other action
li.divider
li.dropdown-header Nav Header
li: a(href='#') Separated link
li: a(href='#') Another separate link
extends parent
block link
-var selected = 'blog';
doctype 5
html
block link
-var selected = 'home'; //default
-var menu = { 'home': '/home', 'blog': '/blog', 'contact': '/contact' };
body
include _menu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment