title: how can I modify or replace the directory index page in Express?
body: <p>In express, I can something like this to have a static server, with directory index pages:</p>
  
  <pre><code>app.configure(function() {
      app.use('/mystuff', _express.static(__dirname + "/whatever/stuff"));
      app.use('/mystuff', _express.directory(__dirname + "/whatever/stuff"));
  });
  </code></pre>
  
  <p>I would like to modify the directory index pages, by giving them different css, adding some javascript, and maybe altering the html.  I prefer use as much of the existing functionality if possible, but if it is easy to just replace the whole directory middleware with my own code, that's an option.  Not sure where to start with this.  Of course, I don't want to actually edit code in the express or connect modules.</p>
  
  <p>BTW, one reason for this is to workaround a bug I mentioned here: <a href="https://stackoverflow.com/questions/12808295/how-do-i-set-up-static-serving-in-express-with-an-arbitrary-start-path">How do I set up static serving in Express with an arbitrary start path?</a></p>