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

Support explicit conditional blocks #25

Merged

Conversation

ghost
Copy link

@ghost ghost commented Jan 28, 2017

Explicit conditional blocks are e.g. necessary to support introducing the
expansion of a list with an optional header, like in the following example:

{{?products}}
Product names:
  {{#products}}
  - {{name}}
  {{/products}}
{{/products}}
{{^products}}
No products
{{/products}}

I did not include tests, because their data is included in the corresponding
pull request to the Mustache spec.

This uses the flexible block-tag checks from #27.

See-Also: mustache/spec#22
See-Also: mustache/spec#55 (comment)

@ghost ghost force-pushed the feature/explicit-conditionals branch from 222002a to 8e69b5d Compare February 1, 2017 18:01
@ghost ghost mentioned this pull request Feb 1, 2017
Dennis Schridde added 2 commits February 1, 2017 19:03
Explicit conditional blocks are e.g. necessary to support introducing the
 expansion of a list with an optional header, like in the following example:

```mustache
{{?products}}
Product names:
  {{#products}}
  - {{name}}
  {{/products}}
{{/products}}
{{^products}}
No products
{{/products}}
```

I did not include tests, because their data is included in the corresponding
 pull request to the Mustache spec.

See-Also: mustache/spec#22
See-Also: mustache/spec#55 (comment)
@ghost ghost force-pushed the feature/explicit-conditionals branch from 8e69b5d to 526cfe3 Compare February 1, 2017 18:04
@ajacksified ajacksified merged commit cc9ccbd into Olivine-Labs:master Jan 15, 2021
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.

None yet

1 participant