projects
/
jinja2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78efe74
)
Fixed a bug in add_extension
author
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 29 May 2010 20:01:59 +0000
(22:01 +0200)
committer
Armin Ronacher
<armin.ronacher@active-4.com>
Sat, 29 May 2010 20:01:59 +0000
(22:01 +0200)
--HG--
branch : trunk
jinja2/environment.py
patch
|
blob
|
history
diff --git
a/jinja2/environment.py
b/jinja2/environment.py
index c8abd51f8fd21ae7e562565a8ec740ae912c0678..a94bc6eaedccc1947c2e81d16b897b53340dd5cc 100644
(file)
--- a/
jinja2/environment.py
+++ b/
jinja2/environment.py
@@
-284,7
+284,7
@@
class Environment(object):
.. versionadded:: 2.5
"""
-
load_extensions(self, [extension]
)
+
self.extensions.update(load_extensions(self, [extension])
)
def extend(self, **attributes):
"""Add the items to the instance of the environment if they do not exist