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

Commits on Feb 1, 2017

  1. Make block-tag checks more flexible

    Dennis Schridde committed Feb 1, 2017
    Configuration menu
    Copy the full SHA
    d63d040 View commit details
    Browse the repository at this point in the history
  2. Support explicit conditional blocks

    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)
    Dennis Schridde committed Feb 1, 2017
    Configuration menu
    Copy the full SHA
    526cfe3 View commit details
    Browse the repository at this point in the history