Created
November 22, 2011 18:36
-
-
Save BenHall/1386475 to your computer and use it in GitHub Desktop.
Twitter Bootstrap in Jade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
script(src='/javascripts/jquery-1.7.min.js') | |
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css') | |
link(rel='stylesheet', href='/stylesheets/bootstrap-overrides.css') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
head | |
include ../includes/bootstrap | |
div.topbar | |
div.fill | |
div.container | |
a(href='#').brand #{title} | |
ul.nav | |
li.active | |
a(href='#') Home | |
li | |
a(href='#') About | |
li | |
a(href='#') Contact | |
div.container | |
div.content | |
div.page-header | |
h1 #{title} | |
small text | |
div.row | |
div.span10 | |
h2 Main content | |
div.span4 | |
h3 Secondary content | |
footer | |
p © Company 2011 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!!! 5 | |
html | |
head | |
title= title | |
body!= body |
Don't include script before CSS
https://developers.google.com/speed/articles/include-scripts-properly
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
useful