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

Add support for else if #17

Merged
merged 1 commit into from
May 2, 2021
Merged

Add support for else if #17

merged 1 commit into from
May 2, 2021

Conversation

thekid
Copy link
Member

@thekid thekid commented May 2, 2021

Example:

<!-- Now possible -->
{{#if template}}
  Template
{{else if hardwired}}
  Hardwired
{{else}}
  Cannot determine type
{{/if}}

<!-- Essentially the same as -->
{{#if template}}
  Template
{{else}}
  {{#if hardwired}}
    Hardwired
  {{else}}
    Cannot determine type
  {{/if}}
{{/if}}

See handlebars-lang/handlebars.js#892

@thekid thekid merged commit cbcd553 into master May 2, 2021
@thekid thekid deleted the feature/else-if branch May 2, 2021 12:59
@thekid
Copy link
Member Author

thekid commented May 2, 2021

thekid added a commit that referenced this pull request Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant