Open thekid opened 1 year ago
This pull request adds a helper which returns the first non-null argument.
This syntax: {{#title}}{{.}}{{^}}Default{{/title}} Can now be shortened to: {{coalesce title "Default"}}
This is similar to the any helper but it returns the first non-null value (or null if there is none) instead of true or false.
any
null
true
false
This pull request adds a helper which returns the first non-null argument.
This is similar to the
any
helper but it returns the first non-null value (ornull
if there is none) instead oftrue
orfalse
.