def render(self, context):
try:
# Loading the template and rendering it
template_name = template.resolve_variable(self.template_name, context)
included_template = get_template(template_name).render(context)
except template.TemplateDoesNotExist:
included_template = ""
return included_template
utility_tags.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录