This commit is contained in:
yumoqing 2024-01-31 17:43:18 +08:00
parent 4a81516742
commit 27fe0dff96

View File

@ -161,12 +161,11 @@ class BricksUIProcessor(TemplateProcessor):
print(f'{self.content=}')
if params.get('_webbricks_',None):
return
else:
txt = self.content
entire_url = self.run_ns.get('entire_url')
content0 = await self.resource.path_call(request,entire_url('/header.tmpl'))
content2 = await self.resource.path_call(request,entire_url('/footer.tmpl'))
self.content = '%s%s%s' % (content0, txt, content2)
txt = self.content
entire_url = self.run_ns.get('entire_url')
content0 = await self.resource.path_call(request,entire_url('/bricks/header.tmpl'))
content2 = await self.resource.path_call(request,entire_url('/bricks/footer.tmpl'))
self.content = '%s%s%s' % (content0, txt, content2)
class PythonScriptProcessor(BaseProcessor):
@classmethod