Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.configure ->
- app.set 'views', process.cwd() + '/Web/views'
- app.set 'view engine', 'jade'
- app.set 'view options', { pretty: true }
- app.use express.bodyParser()
- app.use express.methodOverride()
- app.use require('stylus').middleware({ src: process.cwd() + '/Web/public' })
- app.use express.favicon process.cwd() + '/Web/public/favicon.ico'
- app.use app.router
- app.use express.static(process.cwd() + '/Web/public')
- app.use (req, res, next) -> next(new NotFound('URL not found.'))
Add Comment
Please, Sign In to add comment