def get_templates(self):
     """
     Initialize templates
     """
     # TODO: Raise raise improperly configured
     self.templates = {tag: loader_get_template(path)
                       for tag, path in self.TAG_TEMPLATES.items()}
示例#2
0
 def get_templates(self):
     """
     Render fragment using given django template
     """
     templates = {}
     for k,v in settings.ASSETS_TAG_TEMPLATES.items():
         templates[k] = loader_get_template(v)
     return templates
示例#3
0
 def get_templates(self):
     """
     Render fragment using given django template
     """
     templates = {}
     for k, v in settings.ASSETS_TAG_TEMPLATES.items():
         templates[k] = loader_get_template(v)
     return templates