title: nunjucks: Template not found
body: <p>Trying to render a nunjucks template but getting <code>Error: template not found: email.html</code>.</p>
  
  <pre><code>server/
    views/
       email/
         email.html
    workers/
        email.worker.js
  </code></pre>
  
  
  
  <pre><code>//email.worker.js
  function createMessage(articles) {
     console.log(__dirname) // /&lt;path&gt;/server/workers
  
     nunjucks.configure('../views/email/');
     return nunjucks.render('email.html', articles);
  }
  </code></pre>
  
  <p>No idea what's wrong here.</p>