bugfix
This commit is contained in:
parent
c12f524360
commit
601d360f8d
@ -132,12 +132,12 @@ class TemplateProcessor(BaseProcessor):
|
||||
|
||||
async def path_call(self, request, params={}):
|
||||
await self.set_run_env(request, params=params)
|
||||
path = self.path
|
||||
path = request.path
|
||||
url = self.resource.entireUrl(request, path)
|
||||
path = self.resource.url2path(url)
|
||||
n_path = self.resource.url2path(url)
|
||||
ns = self.run_ns
|
||||
te = self.run_ns['tmpl_engine']
|
||||
print(f'{url=}, {path=}')
|
||||
print(f'TemplateProcessor:path_call():{url=}, {path=}, {n_path=}, {self.path=}')
|
||||
# return await te.render(url,**ns)
|
||||
return await te.render(path,**ns)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user