visionmedia/express — pull request #1243 by saintedlama (2012-07-24 05:24:53+00:00)
Title: Fixes path joining in app stub generator on win32 systems

This is a rather trivial pull request to ensure that on win32 systems express.js stubs that are created via `express` command line can be started out of the box.

Instead of using a simple string concatenation

app.use(express.static(__dirname + '/public'));

the path for static middleware is built via a path.join

app.use(express.static(path.join(__dirname, 'public')));