diff --git a/hyde/ext/templates/jinja.py b/hyde/ext/templates/jinja.py index e5fa071..fe5d7b3 100644 --- a/hyde/ext/templates/jinja.py +++ b/hyde/ext/templates/jinja.py @@ -356,6 +356,9 @@ class Refer(Extension): def _push_resource(self, namespace, site, resource, template, caller): namespace['parent_resource'] = resource + if not hasattr(resource, 'depends'): + resource.depends = [] + resource.depends.append(template) namespace['resource'] = site.content.resource_from_relative_path(template) return ''