feat: add template rendering support with variable substitution and conditional blocks

This commit is contained in:
retoor 2024-12-28 15:25:46 +00:00
parent 0f57bb243a
commit e630b0ac8f

View File

@ -104,7 +104,7 @@ class BaseApplication(RPCApplication):
return await handler(request)
async def render_template(self, name, request, context):
return aiohttp_jinja2.render_template(name, request=self.request, context)
return aiohttp_jinja2.render_template(name, self.request, context)
@web.middleware
async def request_middleware(self, request: web.Request, handler):