title: send html file and data using express
body: <p>I want to send a html file and an object to the client from server using express such that when the file gets loaded it uses the object and structure dynamically using ajax. </p>
  
  <p>I know that the html file can be send like this:</p>
  
  <pre><code>res.sendFile( __dirname + "/" + "main.html" )
  </code></pre>
  
  <p>object as:</p>
  
  <pre><code>res.json(obj);
  </code></pre>
  
  <p>But how to send them together?</p>