有没有办法从字符串渲染mako模板?
问题描述:
我需要运行渲染数据库中存储在字符串中的mako模板。该代码应该像有没有办法从字符串渲染mako模板?
emailtext = render(template_string, {})
有没有办法不创建临时文件.mako
这样做?
在此先感谢,伊万。
我需要运行渲染数据库中存储在字符串中的mako模板。该代码应该像有没有办法从字符串渲染mako模板?
emailtext = render(template_string, {})
有没有办法不创建临时文件.mako
这样做?
在此先感谢,伊万。