| Total Complexity | 1 |
| Total Lines | 9 |
| Duplicated Lines | 0 % |
| 1 | # -*- coding: utf-8 -*- |
||
| 6 | class StrictEnvironment(Environment): |
||
| 7 | """Jinja2 environment that raises an error when it hits a variable |
||
| 8 | which is not defined in the context used to render a template. |
||
| 9 | """ |
||
| 10 | def __init__(self, **kwargs): |
||
| 11 | super(StrictEnvironment, self).__init__( |
||
| 12 | undefined=StrictUndefined, |
||
| 13 | extensions=['jinja2_time.TimeExtension'], |
||
| 14 | **kwargs |
||
| 15 | ) |
||
| 16 |