-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Jinja Template undefined behavior
Only deal with setting `undefined=StrictUndefined` in a single place for our Jinja Templates by using a Jinja Environment across all Template instances. This is Jinja's preferred way to deal with Templates anyway, as opposed to to automatic implicit Environment that gets created the first time you construct a bare Template. This also simplifies the validation logic to not deal with `ChainMap` or any of the `__missing__` Dict stuff, and instead let Jinja deal with that entirely for us. Signed-off-by: Ben Browning <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters