title: How to render a EJS template from a file?
body: <p>How can I render HTML with data from a specific EJS file?</p>
  
  <p>For example, I have a file <code>email.ejs</code> that contains HTML like so:</p>
  
  <pre><code>&lt;a href="&lt;%= uniqueUrl %&gt;"&gt;&lt;%= uniqueUrl %&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I tried the following, although keep getting multiple errors:</p>
  
  <pre><code>var ejs = require('ejs');
  var html = ejs.render({uniqueUrl: passedOptions.uniqueUrl, template: 'templates/emails/reset-password.ejs'})
  </code></pre>