I noticed that missing parameters are rendered as empty strings.
>>> ashes_env.register_source('hello', 'Hello, {name}!')
<Template name='hello'>
>>> ashes_env.render('hello', {})
'Hello, !'
It would be nice if it was possible to opt-in to errors. My use case is that I want to test that I am not passing the wrong parameters for a template.
Thanks in advance, I like the library.
I noticed that missing parameters are rendered as empty strings.
It would be nice if it was possible to opt-in to errors. My use case is that I want to test that I am not passing the wrong parameters for a template.
Thanks in advance, I like the library.