Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.exports = function(app){
- app.configure(function(){
- app.set('views', __dirname + '/views');
- app.set('view engine', 'jade');
- app.use(express.bodyDecoder());
- app.use(express.methodOverride());
- app.use(express.compiler({ src: __dirname + '/public', enable: ['less'] }));
- app.use(app.router);
- app.use(express.staticProvider(__dirname + '/public'));
- });
- app.configure('development', function(){
- app.use(express.errorHandler({ dumpExceptions: true, showStack: true }));
- });
- app.configure('production', function(){
- app.use(express.errorHandler());
- });
- };
Add Comment
Please, Sign In to add comment