title: The partial could not be found handlebars
body: <p>I am using nodeJS and Handlebars.</p>
  
  <p>I have a list of template and partials that I precompile using </p>
  
  <pre><code>"build": "tsc &amp;&amp; handlebars -m ./templates/views -f ./view.js -k customhelpers.js --extension hbs &amp;&amp; handlebars -m ./templates/partials -p -f ./partials.js -k customhelpers.js --extension hbs",
  </code></pre>
  
  <p>in one of my template I have the following => </p>
  
  <pre><code>        &lt;ul class="list"&gt;
              {{&gt;chat-room room}}
          &lt;/ul&gt;
  </code></pre>
  
  <p>and in the partials folder I have </p>
  
  <p>chat-room.hbs</p>
  
  <pre><code>&lt;li class="clearfix"&gt;
      &lt;img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/195612/chat_avatar_02.jpg" alt="avatar" /&gt;
      &lt;div class="about"&gt;
          &lt;div class="name"&gt;{{name}}&lt;/div&gt;
          &lt;div class="status"&gt;
              &lt;i class="fa fa-circle"&gt;last message&lt;/i&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>All my partials that are called from sj like this </p>
  
  <pre><code>    this.$element.insertAdjacentHTML('beforeend', Handlebars.templates['other-message']({
          time : time.getHours() + ":"+ (time.getMinutes() &lt; 10? '0': '') + time.getMinutes(),
          user: user,
          content: content,
          type : type
      }));
  </code></pre>
  
  <p>works, but the one called directly from the template retrieve this error </p>
  
  <blockquote>
    <p>Error:
    D:\Crocsx\Local\gitRepo\NodeJsChatTest\public\templates\views\chat.hbs
    : The partial chat-room could not be found</p>
  </blockquote>
  
  <p>But the partial are registered in nodejs</p>
  
  <pre><code>const publicDirectoryPath = path.join(__dirname, '../../');
  const viewsPath = path.join(__dirname, '../../templates/views')
  const partialsPath = path.join(__dirname, '../../templates/partials')
  const app = express();
  app.set('view engine', 'hbs');
  app.set('views', viewsPath);
  hbs.registerPartials(partialsPath)
  </code></pre>