feat: add template rendering support with context variable injection

This commit is contained in:
2024-12-28 15:38:01 +00:00
parent e901d7811f
commit e459701166
+1
View File
@@ -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"):