chore: update jinja environment to use autoescape and trim_blocks settings

This commit is contained in:
2025-01-24 11:13:01 +00:00
parent 5e2c69176b
commit e2329d9871
+1 -1
View File
@@ -51,7 +51,7 @@ class BaseApplication(RPCApplication):
)
self.agents = {}
super().__init__(middlewares=middlewares, *args, **kwargs)
aiohttp_jinja2.setup(self, loader=jinja2.FileSystemLoader(self.template_path))
self.jinja2_env = aiohttp_jinja2.setup(self, loader=jinja2.FileSystemLoader(self.template_path))
def run(self, *args, **kwargs):
if kwargs.get("port"):