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
I have tried to write a filter or helper method to accept 2 values, and return the first if its truthy, and the second if its not, but I cant see a way to pass multiple arguments to a filter or helper.
Is there anyway to do this?
The sudo code would end up looking something like..
We are using mustache to parse config files, and in a few places we want a use a value if its present, else use a default value.
this can be done with...
So if A was falsey then it would use b instead. However, its getting quite verbose when we have nested properties.
I have tried to write a filter or helper method to accept 2 values, and return the first if its truthy, and the second if its not, but I cant see a way to pass multiple arguments to a filter or helper.
Is there anyway to do this?
The sudo code would end up looking something like..
Any pointers much appreciated....
The text was updated successfully, but these errors were encountered: