Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should defaultTo accept multiple fallbacks? #20

Closed
tylersticka opened this issue Apr 22, 2016 · 1 comment
Closed

Should defaultTo accept multiple fallbacks? #20

tylersticka opened this issue Apr 22, 2016 · 1 comment
Assignees

Comments

@tylersticka
Copy link
Member

{{defaultTo something fallback}} is one of my favorite helpers. While writing up cloudfour/drizzle-builder#82, I wondered if it might make sense to accept one or more arguments, returning the first one that evaluates truthy?

Example:

{{defaultTo something somethingElse "okay, fine"}}
@erikjung
Copy link
Contributor

I can't think of an argument against this behavior. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants