- "expression_filter" argument in <%page> applies only to expressions
- added "default_filters" argument to Template, TemplateLookup. applies only to expressions,
gets prepended to "expression_filter" arg from <%page>. defaults to ["unicode"], so that
all expressions get stringified into u'' by default (this is what Mako already does).
By setting to [], expressions are passed through raw.
- added "imports" argument to Template, TemplateLookup. so you can predefine a list of
import statements at the top of the template. can be used in conjunction with
default_filters.
7 files changed