title: Express.js with Phantom.js
body: <p>I'm using Greg Franko's great Backbone-Require-Boilerplate and I was thinking about SEO so I found Phantom.js</p>
  
  <p>Now I'm trying to integrate it and found.
  <a href="http://backbonetutorials.com/seo-for-single-page-apps/" rel="nofollow noreferrer">http://backbonetutorials.com/seo-for-single-page-apps/</a></p>
  
  <p>which looks like the answer but just couldn't make this work. I have PhantomJs installed.</p>
  
  <p>and my server.js is</p>
  
  <pre><code>// DEPENDENCIES
  // ============
  var express = require("express"),
      http = require("http"),
      port = (process.env.PORT || 8001),
      server = module.exports = express();
  
  // SERVER CONFIGURATION
  // ====================
  server.configure(function() {
  
    server.use(express["static"](__dirname + "/../public"));
  
    server.use(express.errorHandler({
  
      dumpExceptions: true,
  
      showStack: true
  
    }));
  
    server.use(server.router); 
  
    server.get(/(.*)/, respond);
  
  });
  
  // SERVER
  // ======
  
  // Start Node.js Server
  var app = http.createServer(server);
  app.listen(port);
  </code></pre>
  
  <p>So how would I ever plug Phantom.js in this?</p>