Skip to content

0.1.2

Choose a tag to compare

@sqla-tester sqla-tester released this 02 Sep 18:49

0.1.2

Released: Thu Feb 1 2007

  • fix to parsing of code/expression blocks to insure that non-ascii
    characters, combined with a template that indicates a non-standard
    encoding, are expanded into backslash-escaped glyphs before being AST
    parsed

    References: #11

  • all template lexing converts the template to unicode first, to
    immediately catch any encoding issues and ensure internal unicode
    representation.

  • added module_filename argument to Template to allow specification of a
    specific module file

  • added modulename_callable to TemplateLookup to allow a function to
    determine module filenames (takes filename, uri arguments). used for

    References: #14

  • added optional input_encoding flag to Template, to allow sending a
    unicode() object with no magic encoding comment

  • "expression_filter" argument in <%page> applies only to expressions

  • ["unicode"] added "default_filters" argument to Template, TemplateLookup. applies only
    to expressions, gets prepended to "expression_filter" arg from <%page>.
    defaults to, 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.

  • support for CRLF templates...whoops ! welcome to all the windows users.

    References: #16

  • small fix to local variable propigation for locals that are conditionally
    declared

  • got "top level" def calls to work, i.e. template.get_def("somedef").render()