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

Feature: defaultTo helper #18

Merged
merged 1 commit into from
Nov 16, 2015
Merged

Feature: defaultTo helper #18

merged 1 commit into from
Nov 16, 2015

Conversation

erikjung
Copy link
Contributor

This adds a new helper to handle the common case of doing something like:

{{if value}}{{value}}{{else}}default{{/if}}

Using the helper:

{{defaultTo value "default"}}

CC @lyzadanger

@tylersticka
Copy link
Member

Neat! 👍

erikjung added a commit that referenced this pull request Nov 16, 2015
@erikjung erikjung merged commit 40ecf63 into master Nov 16, 2015
@erikjung erikjung deleted the feat-default_helper branch November 16, 2015 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants