title: nodejs/express/ejs render() synchronous
body: <pre><code>res.render("index.ejs", {});
  </code></pre>
  
  <p>The above would be fine for simple cases.</p>
  
  <p>How do I make EJS return the processed string as the function's return value?
  Make it work like this:</p>
  
  <pre><code>res.send(ejs.render("index.ejs", {}));
  </code></pre>
  
  <p>In other words - <strong>I want to nest/chain a few render() calls</strong>, NOT asynchronously.</p>
  
  <p>Express doesn't seem to support this natively, or does it?<br/>
  And if not, then how would I achieve it directly through EJS?</p>
  
  <p><em>If you wonder why I prefer the "bad" way (synchronous) then I got one thing to say: Cache.<br/>
  The templates are being cached anyway, so I don't mind the first load of the template to be slower (in just a few ms anyway).<br/>
  This cost of single delay of a time fraction is no cost compared to having to deal with nested async calls to render().</em></p>