title: Client side + Server side templating, feels wrong to me, how to optimize?
body: <p>In the web app I am making, I use the classical Express+Jade to render client pages and also expose some REST API (let's say : "user list API").</p>
  
  <p>These client pages use provided API to retrieve "user list" and display it. To display it, I use the handlebars template library once the data is retrieved.</p>
  
  <p>It seems a bit dirty to me, using two template engines, parsing the code twice, how to make it better ?</p>
  
  <p>Note : I already optimized the thing by sending the initial data within the client page by inserting it a script variable. This variable is then displayed the same way data received by API would be. The API is only used in case of data refresh.</p>
  
  <p><strong>UPDATE :</strong> using jade both server and client side is a good idea but how to seperate / specify ? Wich part of the rendered template should be done by when serving the page and what part will be used by the client ?</p>