I often have much redundancy when just trying to pass conditional paramters. For example:
{{#if condition}}
{{> otherTemplate param=1}}
{{else}}
{{> otherTemplate param=2}}
{{/if}}
alternative would be now to create another helper (because condition is shared, which I can't simply return the value from this helpert) but that increases the js code a lot for many simple conditions.
Way better would be
{{> otherTemplate param=(condition ? 1 : 2)}}
That would also make many custom Template helpers packages obsolete and thus again reduce bundle size.
Any ideas or ciritcs on that?
I often have much redundancy when just trying to pass conditional paramters. For example:
{{#if condition}} {{> otherTemplate param=1}} {{else}} {{> otherTemplate param=2}} {{/if}}alternative would be now to create another helper (because
conditionis shared, which I can't simply return the value from this helpert) but that increases the js code a lot for many simple conditions.Way better would be
{{> otherTemplate param=(condition ? 1 : 2)}}That would also make many custom Template helpers packages obsolete and thus again reduce bundle size.
Any ideas or ciritcs on that?