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

Behaviour in regard of missing variables is not documented #6

Closed
2 tasks
slavaschmidt opened this issue Oct 19, 2023 · 1 comment
Closed
2 tasks

Behaviour in regard of missing variables is not documented #6

slavaschmidt opened this issue Oct 19, 2023 · 1 comment

Comments

@slavaschmidt
Copy link
Contributor

Describe the feature

The template can't be rendered if the variable it refers to is missing in the data. This is different from mustache, where "If the top context is reached and the name key is still not found, nothing will be rendered."

This behavior is confusing and deserves mention in the documentation.

Ideally, it should suggest how to make conditional rendering possible.

Use Case

variable is missing in the data but mentioned in the template

Proposed Solution

No response

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Version used

0.2.0

Environment details (OS name and version, etc.)

any

@slavaschmidt
Copy link
Contributor Author

figured out i had number instead of string in my json

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

No branches or pull requests

1 participant