Permalink
Browse files

Remove layout, single page apps don't need layouts

  • Loading branch information...
1 parent 42f9406 commit e177a1ca2cd8aef53d0abf10ac90a9b9caf49bb5 @Srirangan committed Apr 26, 2012
Showing with 8 additions and 8 deletions.
  1. +1 −0 app.js
  2. +7 −2 views/index.jade
  3. +0 −6 views/layout.jade
View
1 app.js
@@ -13,6 +13,7 @@ var app = module.exports = express.createServer();
app.configure(function(){
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
+ app.set('view options', {layout: false});
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(app.router);
View
@@ -1,2 +1,7 @@
-h1= title
-p Welcome to #{title}
+!!!
+html
+ head
+ title= title
+ link(rel='stylesheet', href='/stylesheets/style.css')
+ body
+ strong Hello World
View
@@ -1,6 +0,0 @@
-!!!
-html
- head
- title= title
- link(rel='stylesheet', href='/stylesheets/style.css')
- body!= body

0 comments on commit e177a1c

Please sign in to comment.