Search code examples
node.jshandlebars.jsassemble

Assemble handlebars nested math helpers


I was wondering whether there is a way to combine two [Assemble Math helpers]1 in one operation.

For example:

  • I want to do {{multiply 12 a}} and then
  • do {{round}} on the resultant

Thanks for any help.


Solution

  • Using the new subexpressions in Handlebars you can do {{round (multiply 12 a)}}