You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I often have much redundancy when just trying to pass conditional paramters. For example:
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?
The text was updated successfully, but these errors were encountered: