In Handlebars, is there a ternary operator? I don\'t mean if else; I mean like a == true ? \"a\" : \"b\".
The if helper can be used as a ternary operator by passing three arguments to it.
In the following example, a button has a default value of "Save Changes", but when model.isSaving is true, then the value temporarily changes to Saving....
...alternatively, used within another helper:
{{input type="submit" value=(if model.isSaving "Saving..." "Save Changes")}}