def renders(template_content, context, **options):
if options.get("<STR_LIT>", False):<EOL><INDENT>return string.Template(template_content).safe_substitute(context)<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>return string.Template(template_content).substitute(context)<EOL><DEDENT>except KeyError as exc:<EOL><INDENT>raise anytemplate.globals.CompileError(str(exc))<EOL><DEDENT><DEDENT>
:param template_content: Template content
:param context:
    A dict or dict-like object to instantiate given template file
:param options: Options such as:

    - at_paths: Template search paths (common option)
    - at_encoding: Template encoding (common option)
    - safe: Safely substitute parameters in templates, that is,
      original template content will be returned if some of template
      parameters are not found in given context

:return: Rendered string