I'm using expressjs to run my server and have set up the default route for static content as follows: app.use(express.static(path.join(__dirname.substr(0, __dirname.lastIndexOf('/')), 'public')));, where all my static assets are found in public/src, public/styles etc...
Now I want to do a simple find and replace on in public/index.html but as it is in my static folder it ignores any routes I subsequently set up for app.get('/, function  ....
Is there a way I can apply some preprocessing to index.html without having to move all my other static files into a subdirectory e.g. can express.static() be passed an ignore list somehow?
 
    