反应式柔术的写作框架
charms.templating.jinja2的Python项目详细描述
用法
fromcharms.templating.jinja2importrenderrender('app.conf.j2','/etc/app.conf',{'my_var':'my_val',})output=render('tmpl.j2',tests={'isnumeric':lambdas:s.isnumeric(),})output=render(template='{{ config["my-opt"]|my_upper }}',filters={'my_upper':lambdas:s.upper(),})