Skip to content
Permalink
Browse files

Simplifying logic.

  • Loading branch information
felixfontein committed Sep 19, 2016
1 parent 9e149e2 commit ed00e4d0731eef19bff3a0520341d650ba7f9a8c
Showing with 2 additions and 3 deletions.
  1. +2 −3 nikola/plugins/template/jinja.py
@@ -110,9 +110,8 @@ 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)
self.dependency_cache[dep_name] = [filename] + sub_deps
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 ed00e4d

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