Stop repeating yourself with #with
Us programmers always feel a little icky when we need to repeat ourselves, especially in quick succession.
{{#if product.price.without_tax.value}} {{~ product.price.without_tax.value }} {{~/if}}
Luckily, there is a nice little helper called #with
that works great for removing the repetition.
{{#with product.price.without_tax.value}} {{~ this }} {{~/with}}
# or
{{#with product.price.without_tax}} {{~ value }} {{~/with}}
You can throw an else
in there to render if the value is falsy
{{#with product.price.without_tax.value}} {{~ this }} {{~else}} Free {{~/with}}