Skip to content

Commit

Permalink
Added view configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan1 committed Jun 1, 2012
1 parent eb2073a commit f40f983
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app.js
Expand Up @@ -3,10 +3,17 @@ var image_proxy = require('./image-proxy');
var express = require('express');
var app = express.createServer();

app.configure(function(){
app.set('view engine', 'jade');
app.set('views', __dirname + '/views');
app.set('view options', { layout: false, pretty: true});
});


app.get('/image', image_proxy.run);

app.get('/test', function(req, res){
res.render('test.jade', { layout: false });
res.render('test.jade');
});

app.listen(3000);

0 comments on commit f40f983

Please sign in to comment.