Skip to content
Browse files
jinja was not returning the template file itself as dependency for a …
…template name
  • Loading branch information
ralsina committed Aug 16, 2016
1 parent 3159c4b commit c76b260d693fd3271147ca60f67e090b0fada5db
Showing 1 changed file with 1 addition and 1 deletion.
@@ -122,7 +122,7 @@ def template_deps(self, template_name):
"""Generate list of dependencies for a template."""
if self.dependency_cache.get(template_name) is None:
filename = self.lookup.loader.get_source(self.lookup, template_name)[1]
self.dependency_cache[template_name] = self.get_deps(filename)
self.dependency_cache[template_name] = [filename] + self.get_deps(filename)
return self.dependency_cache[template_name]

def get_template_path(self, template_name):

0 comments on commit c76b260

Please sign in to comment.