How to use values from Handlebars helpers with math ?
Hi !
I created a loop to extract all the product prices.
I need to use those values in math calculations.
What is the right syntax to achieve that ?
{{#each profile.productsInCart}}
This price = {{this.price}} <!-- This price = 22.88 (Working) -->
This Price + TVA = {{ 1.7*this.price }} <!-- Not working -->
This Price + TVA = {%= 1.7*this.price %} <!-- Not working -->
This Price + TVA = {%= 1.7*{{this.price}} %} <!-- Not working -->
{{/each}}
I can see the value for {{this.price}} , but I cannot use in other context (eg helper functions).
Thank you!