title: res.send and res.render calls
body: <p>I am trying to determine if i can call res.send(data) and then res.render('reports') simultaneously. </p>
  
  <p>To explain further in detail, when i route to '/reports', first on my server side i making a REST call to an API which returns back json data. Now i want this json data to be accessed on the client, for which i am making an ajax call from my javascript. Hence the use of res.send(), but i also want to render the page in this call</p>
  
  <p>So it looks like the following on my <strong>server side code</strong></p>
  
  <pre><code>router.get('/reports', function(req,res){
       //Making the REST Call to get the json data
       //then
       res.send(json);
       res.render('reports');
  });
  </code></pre>
  
  <p>Every time i hit the '/reports' on the browser, I see the json value instead of the page being rendered and my console throws an Error: <strong>Can't set headers after they are sent.</strong> </p>