Skip to content
Myr

Fixed prefix loader now properly forward globals.

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

This fixes #238

authored by Armin Ronacher · committed by Armin Ronacher · parent c6519c1 · Browse files · 2 files+4 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

2 files+4 added−1 removed

  • other:+4 added−1 removed

2 files+4 added−1 removed

modified:jinja2/loaders.py+1 added-1 removed
347 unmodified lines
348 @internalcode349 def load(self, environment, name, globals=None):350 loader, local_name = self.get_loader(name)351 try:352 return loader.load(environment, local_name)352 return loader.load(environment, local_name, globals)353 except TemplateNotFound:354 # re-raise the exception with the correct fileame here.355 # (the one that includes the prefix)356 raise TemplateNotFound(name)
115 unmodified lines
modified:CHANGES+3 added
3 unmodified lines
4Version 2.7.25-------------6(bugfix release, release date to be decided)78- Prefix loader was not forwarding the locals properly to9 inner loaders. This is now fixed.1011Version 2.7.112-------------13(bugfix release, released on August 7th 2013)14
308 unmodified lines