mirror of
https://github.com/lektor/lektor-website.git
synced 2025-02-22 07:00:38 +01:00
Merge pull request #149 from marksteve/patch-1
Fix on_setup_env example
This commit is contained in:
commit
f59ec0ea9e
@ -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'
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user