title: Handlebars math expressions when looping through array
body: <p>I'm practicing node, and I ran to a little problem. I'm using handlebars as a templating engine, and mongoose for interaction with my database. In my .hbs template I am looping through each record from the database, and of course I passed the records to my view with</p>
  
  <pre><code>router.get('/', function(req, res, next) {
  Exam.find(function(err, predmeti) {
  if (err) {
    console.log(err);
  }
    res.render('index',{
      predmeti: predmeti
    })
  })
  
  }); 
  </code></pre>
  
  <p>Now when im looping through <code>predmeti</code> with #each, engine throws an error when I try doing math expressions such as</p>
  
  <pre><code>{{#each predmeti}}
   &lt;h1&gt;{{100/(brKolokvijuma/finished)}}&lt;/h1&gt;
  {{/each}}
  </code></pre>
  
  <p><code>brKolokvijuma and finished</code> both have a number value, but for some reason I get a error <em>Expecting ID got OPEN_SEXPR</em></p>
  
  <p>So I'm assuming handlebars won't let me do math expressions when I'm looping through an array. How can I solve this? </p>