|
@@ -599,7 +599,11 @@ class Jinja2Template(Template): |
|
|
""" |
|
|
""" |
|
|
text = self.env.loader.get_source(self.env, path)[0] |
|
|
text = self.env.loader.get_source(self.env, path)[0] |
|
|
from jinja2.meta import find_referenced_templates |
|
|
from jinja2.meta import find_referenced_templates |
|
|
ast = self.env.parse(text) |
|
|
|
|
|
|
|
|
try: |
|
|
|
|
|
ast = self.env.parse(text) |
|
|
|
|
|
except: |
|
|
|
|
|
logger.error("Error parsing[%s]" % path) |
|
|
|
|
|
raise |
|
|
tpls = find_referenced_templates(ast) |
|
|
tpls = find_referenced_templates(ast) |
|
|
deps = list(self.env.globals['deps'].get('path', [])) |
|
|
deps = list(self.env.globals['deps'].get('path', [])) |
|
|
for dep in tpls: |
|
|
for dep in tpls: |
|
|