title: Where to put Handlebars.registerHelper function in node.js project?
body: <p>I want to increase "totalPrice" by 10 and then display it in handlebars templates . Here z some snippet of my handlebar file.
  checkout.hbs</p>
  
  <pre><code>&lt;ul class="shipping__method"&gt;
         &lt;li&gt;Shipping &lt;span&gt;$ 10&lt;/span&gt;&lt;/li&gt;
   &lt;/ul&gt;
   &lt;ul class="total__amount"&gt;
     &lt;li&gt;Order Total &lt;span&gt;Rs. {{increasePrice totalPrice}}&lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>For that i write this in my app.js file</p>
  
  <pre><code>  var expressHbs =  require('express-handlebars');
      app.engine('.hbs', expressHbs({ defaultLayout: 'layout', extname: '.hbs'}))
       app.set('view engine', '.hbs');
      expressHbs.registerHelper ('increasePrice', function (price) {
        price+=10;
        return price;
       })
  </code></pre>
  
  <p>And then i got error  expressHbs.registerHelper is not a function. Then i came to know to write it like this</p>
  
  <pre><code> var hbs = expressHbs.create({
   helpers: {
     increasePrice: function(price) {
       price+=20;
       return price;
     }
    }
  })
  </code></pre>
  
  <p>And then i got error like "missing Helper: "increasePrice" ".</p>