Skip to content
Permalink
Browse files

Merge pull request #2501 from getnikola/fix-jinja-deps

Fixing dependency generation for jinja templating engine.
  • Loading branch information
Kwpolska committed Sep 19, 2016
2 parents 91c5c08 + ed00e4d commit fad241e78dfdaee56bb95203cdb8a11769b454de
Showing with 1 addition and 2 deletions.
  1. +1 −2 nikola/plugins/template/jinja.py
@@ -110,8 +110,7 @@ def get_string_deps(self, text):
dep_names = meta.find_referenced_templates(ast)
for dep_name in dep_names:
filename = self.lookup.loader.get_source(self.lookup, dep_name)[1]
deps.add(filename)
sub_deps = self.get_deps(filename)
sub_deps = [filename] + self.get_deps(filename)
self.dependency_cache[dep_name] = sub_deps
deps |= set(sub_deps)
return list(deps)

0 comments on commit fad241e

Please sign in to comment.
You can’t perform that action at this time.