Skip to content

Add support for else if#17

Merged
thekid merged 1 commit intomasterfrom
feature/else-if
May 2, 2021
Merged

Add support for else if#17
thekid merged 1 commit intomasterfrom
feature/else-if

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