From e4597011666df4f07010a7fe61c27bafcf9c6b60 Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 28 Dec 2024 15:38:01 +0000 Subject: [PATCH] feat: add template rendering support with context variable injection --- src/app/app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/app.py b/src/app/app.py index 7fbd70d..19bcb1f 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -50,6 +50,7 @@ class BaseApplication(RPCApplication): ) self.agents = {} super().__init__(middlewares=middlewares, *args, **kwargs) + aiohttp_jinja2.setup(self, loader=jinja2.FileSystemLoader(self.template_path)) def run(self, *args, **kwargs): if kwargs.get("port"):