title: How to do some simple math in Meteor's template?
body: <p>Let's say I have a simple product_orders collection in Meteor (_id, user_id, user_name, product_name, price_unit, quantity) and I want to show all orders of a single user in table where each row should contain:</p>
  
  <pre><code>user_name, product_name, quantity, price_unit, quantity, price_total (price_unit * quantity)
  </code></pre>
  
  <p>Additionally I would like to display a grand total for all user's orders.</p>
  
  <p>I don't see easy way to do this in Handlebars.js template as Handlebars doesn't appear to support simple math operations. I can easily return product_order's cursor to my template but don't see easy way to calculate price_total and grand total in template.</p>
  
  <p>I am thinking of creating a template helper of some sort but not sure if that's the proper direction to go. This problem looks like it must have a simple &amp; elegant solution.</p>