From 478983594423dcdb85e26ea7a02b8d1d72215db6 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 27 May 2013 00:54:52 +0300 Subject: [PATCH] Fix "PrefixLoader does not pass globals to load" Fix mitsuhiko/jinja2#225 --- jinja2/loaders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jinja2/loaders.py b/jinja2/loaders.py index a9a2625..cc9c683 100644 --- a/jinja2/loaders.py +++ b/jinja2/loaders.py @@ -349,7 +349,7 @@ def get_source(self, environment, template): def load(self, environment, name, globals=None): loader, local_name = self.get_loader(name) try: - return loader.load(environment, local_name) + return loader.load(environment, local_name, globals) except TemplateNotFound: # re-raise the exception with the correct fileame here. # (the one that includes the prefix) -- 1.8.1.6