From 1dc826c89892927b108011bcb0bc4f756173cecc Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 10 Oct 2025 16:16:33 +0800 Subject: [PATCH] bugfix --- appPublic/myTE.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appPublic/myTE.py b/appPublic/myTE.py index f063faf..1e0ae03 100755 --- a/appPublic/myTE.py +++ b/appPublic/myTE.py @@ -13,8 +13,8 @@ def isNone(obj): def string_template_render(tmp_string, data): - rtemplate = Environment(loader=BaseLoader()).from_string(tmp_string) - return rtemplate.render(**data) + te = MyTemplateEngine([]) + return te.renders(tmplstr, data) class MyTemplateEngine: def __init__(self,pathList,file_coding='utf-8',out_coding='utf-8', env={}):