title: Express.js res.render and res.json
body: <p>i have some problem with express.js. I want to render my template on first request, and then get some data from routs. My routing look like:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.use(function (req, res, next) {
   res.render('index.jade');
   next();
  });
  
  app.get('/', function(req, res){  
    res.json({a:1});
  })
  
  app.get('/contacts', function(req, res){  
    res.json({a:1});
  })
  
  app.get('/emails', function(req, res){  
    res.json({a:1});
  })
  </code></pre>
  
  <p>The problem is that every request i do, set response to html/text by my middleware, and i can't get to other routs. Mb some one know how i can render template only once, and than be able to get to the other routs (i try to do SPA with express and backbone)</p>