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

Conditions #112

Open
alexpartsch opened this issue Feb 1, 2022 · 2 comments
Open

Conditions #112

alexpartsch opened this issue Feb 1, 2022 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@alexpartsch
Copy link
Contributor

We will be copying the None-False Values from the Mustache template engine specification:

Non-False Values

When the value is non-false but not a list, it will be used as the context for a single rendering of the block.

Template:

{{#person?}}
 Hi {{name}}!
{{/person?}}

Hash:

{
  "person?": { "name": "Jon" }
}

Output:

Hi Jon!
@alexpartsch alexpartsch added the enhancement New feature or request label Feb 1, 2022
@alexpartsch alexpartsch self-assigned this Feb 1, 2022
@alexpartsch
Copy link
Contributor Author

False we define:

  • null
  • 0
  • false
  • [ ]

@AntonOellerer
Copy link
Contributor

  • empty string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants