Skip to content

Instantly share code, notes, and snippets.

@mape
Created July 27, 2010 10:02
Show Gist options
  • Select an option

  • Save mape/492000 to your computer and use it in GitHub Desktop.

Select an option

Save mape/492000 to your computer and use it in GitHub Desktop.
var app = module.exports = Express.createServer();
app.configure(function() {
app.set('view engine', 'ejs');
app.set('views', __dirname + '/views');
app.set('reload views', 1000);
});
app.configure(function() {
app.use(connect.conditionalGet());
app.use(connect.gzip());
app.use(assets);
app.use(connect.staticProvider(root));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment