Fix on_setup_env example code

This commit is contained in:
Philipp Bosch 2016-08-08 14:34:30 +02:00 committed by GitHub
parent 80168c8914
commit 64091b5962
1 changed files with 1 additions and 1 deletions

View File

@ -15,5 +15,5 @@ filters and global variables.
```python
def on_setup_env(self, **extra):
env.jinja_env.globals['my_variable'] = 'my value'
self.env.jinja_env.globals['my_variable'] = 'my value'
```