template = "{% macro f() %} hello {% endmacro %} world" t = jinja2.Template(template) print t.module.f(). Output. hello. Want to code faster?
確定! 回上一頁