Browse Source

Fixed a bug where dependency path is empty

main
Lakshmi Vyasarajan 14 years ago
parent
commit
f188c944ba
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      hyde/ext/templates/jinja.py

+ 3
- 2
hyde/ext/templates/jinja.py View File

@@ -404,8 +404,9 @@ class Jinja2Template(Template):
tpls = find_referenced_templates(ast)
deps = []
for dep in tpls:
deps.append(dep)
deps.extend(self.get_dependencies(dep))
if dep:
deps.append(dep)
deps.extend(self.get_dependencies(dep))
return list(set(deps))

@property


Loading…
Cancel
Save