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

View File

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