bugfix
This commit is contained in:
parent
83ff81e5e0
commit
1dc826c898
@ -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={}):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user