You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if a variable does not exist, Chevron just replaces it with an unknown value:
# This will render 'hello 'result=chevron.render('{{ value1 }} {{ value2 }}', { 'value1': 'hello' })
Is it possible to customize this? There's two main cases that would be useful:
Raise an error on an unknown field; this helps us fail-fast when the result is due to a misspelling.
Ignore the template directive, just render the text as is. So in the example above, leave it as 'hello {{ value2 }}'.
The first is useful in general; the second is useful for multi-pass rendering where we receive data at different stages, and want to render a partially-evaluated version of the template.
The text was updated successfully, but these errors were encountered:
Looks like this release is still pending. Is this project still being maintained? Would be great to see this release being pushed, and happy to contribute a pr that raises an error in the event of unknown field if it would be welcomed?
Currently if a variable does not exist, Chevron just replaces it with an unknown value:
Is it possible to customize this? There's two main cases that would be useful:
'hello {{ value2 }}'
.The first is useful in general; the second is useful for multi-pass rendering where we receive data at different stages, and want to render a partially-evaluated version of the template.
The text was updated successfully, but these errors were encountered: