Added template support.
All checks were successful
Build Base Application / Build (push) Successful in 1m41s
All checks were successful
Build Base Application / Build (push) Successful in 1m41s
This commit is contained in:
parent
c1a1a9b719
commit
637ae73e0f
@ -106,8 +106,8 @@ class BaseApplication(RPCApplication):
|
|||||||
|
|
||||||
return await handler(request)
|
return await handler(request)
|
||||||
|
|
||||||
async def render_template(self, name, request, context):
|
async def render_template(self, name, request=None, context=None):
|
||||||
return aiohttp_jinja2.render_template(name, self.request, context)
|
return aiohttp_jinja2.render_template(name, request, context)
|
||||||
|
|
||||||
@web.middleware
|
@web.middleware
|
||||||
async def request_middleware(self, request: web.Request, handler):
|
async def request_middleware(self, request: web.Request, handler):
|
||||||
|
Loading…
Reference in New Issue
Block a user