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()}
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
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