From 30760aa41272f7781da052f4cf3b774d08f6cf5e Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 28 Dec 2024 16:38:01 +0100 Subject: [PATCH] Added template support. --- 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"):