📜  python jinja2 from string - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:03.078000             🧑  作者: Mango

代码示例1
from jinja2 import Environment, BaseLoader

rtemplate = Environment(loader=BaseLoader()).from_string(myString)
data = rtemplate.render(**data)