From 637ae73e0f21d551ca56b1669106186b70302587 Mon Sep 17 00:00:00 2001 From: retoor Date: Sat, 28 Dec 2024 16:31:21 +0100 Subject: [PATCH] Added template support. --- src/app/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/app.py b/src/app/app.py index 9ecac8d..7fbd70d 100644 --- a/src/app/app.py +++ b/src/app/app.py @@ -106,8 +106,8 @@ class BaseApplication(RPCApplication): return await handler(request) - async def render_template(self, name, request, context): - return aiohttp_jinja2.render_template(name, self.request, context) + async def render_template(self, name, request=None, context=None): + return aiohttp_jinja2.render_template(name, request, context) @web.middleware async def request_middleware(self, request: web.Request, handler):