def renders_impl(self, template_content, context, at_paths=None,<EOL>at_encoding=anytemplate.compat.ENCODING,<EOL>**kwargs):
if "<STR_LIT:filename>" in kwargs:<EOL><INDENT>kwargs["<STR_LIT:filename>"] = None<EOL><DEDENT>kwargs["<STR_LIT:text>"] = template_content<EOL>if "<STR_LIT>" not in kwargs:<EOL><INDENT>kwargs["<STR_LIT>"] = at_encoding.lower()<EOL><DEDENT>if "<STR_LIT>" not in kwargs:<EOL><INDENT>kwargs["<STR_LIT>"] = at_encoding.lower()<EOL><DEDENT>if at_paths is not None:<EOL><INDENT>paths = at_paths + self.lookup_options.get("<STR_LIT>", [])<EOL>self.lookup_options["<STR_LIT>"] = paths<EOL>lookup = mako.lookup.TemplateLookup(**self.lookup_options)<EOL>kwargs["<STR_LIT>"] = lookup<EOL><DEDENT>tmpl = mako.template.Template(**kwargs)<EOL>return _render(tmpl, context)<EOL>
Render given template string and return the result.

:param template_content: Template content
:param context: A dict or dict-like object to instantiate given
    template file
:param at_paths: Template search paths
:param at_encoding: Template encoding
:param kwargs: Keyword arguments passed to the template engine to
    render templates with specific features enabled.

:return: Rendered string