Browse Source

Added dependency information for the reference tag

main
Lakshmi Vyasarajan 13 years ago
parent
commit
3534a89ccf
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      hyde/ext/templates/jinja.py

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

@@ -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 ''



Loading…
Cancel
Save