def render_resource(path, **context):
"""
Render static resource using provided context.
Returns: django.utils.safestring.SafeText
"""
html = Template(resource_string(path))
return html_parser.unescape(
html.render(Context(context))
)
评论列表
文章目录