This commit is contained in:
yumoqing 2021-05-08 16:15:40 +08:00
parent f4e6ca43f5
commit e9011c55ac

View File

@ -13,7 +13,7 @@ def isNone(obj):
def string_template_render(tmp_string, data):
rtemplate = Environment(loader=BaseLoader()).from_string(myString)
rtemplate = Environment(loader=BaseLoader()).from_string(tmp_string)
return rtemplate.render(**data)
class MyTemplateEngine: