Skip to content
Myr

Fixed a bug in add_extension

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 78efe74 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:jinja2/environment.py+1 added-1 removed
282 unmodified lines
283 """Adds an extension after the environment was created.284285 .. versionadded:: 2.5286 """287 load_extensions(self, [extension])287 self.extensions.update(load_extensions(self, [extension]))288289 def extend(self, **attributes):290 """Add the items to the instance of the environment if they do not exist291 yet. This is used by :ref:`extensions <writing-extensions>` to register
827 unmodified lines