From 4ce2ef41125427acba9311a6ea4f509633f7f9f0 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 11 Dec 2020 04:25:26 +0800 Subject: [PATCH] bugfix --- ahserver/baseProcessor.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ahserver/baseProcessor.py b/ahserver/baseProcessor.py index c64c78b..d5233f1 100644 --- a/ahserver/baseProcessor.py +++ b/ahserver/baseProcessor.py @@ -129,8 +129,11 @@ class JSUIProcessor(TemplateProcessor): else: ns = self.run_ns te = self.run_ns['tmpl_engine'] + print('handle /header.tmpl') content0 = te.render('/header.tmpl',**ns) - content1 = te.render(self.path, **ns) + print('handle', self.path) + content1 = te.render(request.path, **ns) + print('handle footer.tmpl') content2 = te.render('/footer.tmpl',**ns) self.content = '%s%s%s' % (content0,content1,content2)