Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def render(self, templatename):
"""
Template mit jinja rendern, dabei wird self.request.context verwendet
"""
#~ loader = jinja.FileSystemLoader('templates')
loader = jinja.CachedFileSystemLoader('templates')
template = jinja.Template(templatename, loader)
context = jinja.Context(self.request.context)
self.request.write(template.render(context))
if cfg["debug"]: self.request.debug_info()