有没有可能在渲染之前获得Mako模板中的变量名?在 from mako.template import Template bar = Template("${foo}") # something like: # >> print bar.fields.
確定! 回上一頁