From 0b363747da2a35731cf56435a2e566f7590dc7ab Mon Sep 17 00:00:00 2001 From: Mark Steve Samson Date: Tue, 25 Apr 2017 15:22:00 +0800 Subject: [PATCH] Fix example --- content/docs/api/plugins/events/setup-env/contents.lr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/api/plugins/events/setup-env/contents.lr b/content/docs/api/plugins/events/setup-env/contents.lr index 6b6c0840..02d1a432 100644 --- a/content/docs/api/plugins/events/setup-env/contents.lr +++ b/content/docs/api/plugins/events/setup-env/contents.lr @@ -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' ```