Added template support.
All checks were successful
Build Base Application / Build (push) Successful in 1m41s

This commit is contained in:
retoor 2024-12-28 16:31:21 +01:00
parent c1a1a9b719
commit 637ae73e0f

View File

@ -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):