master
yumoqing 2024-02-18 16:58:00 +08:00
parent a456113bc7
commit a0bb3dec12
1 changed files with 3 additions and 2 deletions

View File

@ -136,8 +136,9 @@ class TemplateProcessor(BaseProcessor):
url = self.resource.entireUrl(request, path)
ns = self.run_ns
te = self.run_ns['tmpl_engine']
print(f'{url=}, {ns=}')
return await te.render(url,**ns)
print(f'{url=}, {ns=}, {path=}')
# return await te.render(url,**ns)
return await te.render(path,**ns)
async def datahandle(self,request):
self.content = await self.path_call(request)