Skip to content

Commit

Permalink
Initialize Jade Layout Structure #27
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedmansour committed Apr 12, 2013
1 parent 682426f commit 5e284a1
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "./server.js",
"dependencies": {
"express": "3.1.x",
"ejs": "0.8.x",
"jade": "0.28.x",
"nconf": "0.6.x",
"azure": "0.7.x",
"passport": "0.1.x",
Expand Down
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ app.configure(function(){
app.set('conf', nconf);
app.set('port', process.env.PORT || 3000);
app.set('views', __dirname + '/views');
app.set('view engine', 'ejs');
app.set('view engine', 'jade');
app.use(express.logger('dev'));
app.use(express.compress());
app.use(express.cookieParser());
Expand Down
4 changes: 4 additions & 0 deletions views/index.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends layout

block content
h1 hey there
29 changes: 29 additions & 0 deletions views/layout.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
!!! 5
html(lang="en")
head
title letsgo.io - Discover Scenic Highways and Byways
meta(charset="utf-8")
meta(name="description", content="Looking for a scenic route or a great new place to visit? Check out LetsGo, a travel discovery tool that creates the best routes for you on a photo map.")
meta("http-equiv"="X-UA-Compatible", content="IE=8, IE=9, IE=10")
meta(name="viewport", content="width=device-width")
meta(name="google-site-verification", content="5IR88rxZVzs03hKg6hfbxF-_CYvclDbOv-P6o3FWAFM")
block styles
link(rel="stylesheet", href="/stylesheets/style.css")
link(rel="stylesheet", href="/stylesheets/map.css")
script
if (window.location.hash == '#_=_') {
window.location.hash = '';
history.pushState('', document.title, window.location.pathname);
}
block head
body
block content
footer
Powered by
a(href="http://nodejs.org/) Node.js
hosted on
a(href="http://www.windowsazure.com") Windows Azure
with
a(href="http://bing.com/maps/") Bing Maps
block scripts
script(src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js")

0 comments on commit 5e284a1

Please sign in to comment.