Skip to content

0.2.5

Choose a tag to compare

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

0.2.5

Released: Mon Sep 7 2009

  • Added a "decorator" kw argument to <%def>,
    allows custom decoration functions to wrap
    rendering callables. Mainly intended for
    custom caching algorithms, not sure what
    other uses there may be (but there may be).
    Examples are in the "filtering" docs.

  • When Mako creates subdirectories in which
    to store templates, it uses the more
    permissive mode of 0775 instead of 0750,
    helping out with certain multi-process
    scenarios. Note that the mode is always
    subject to the restrictions of the existing
    umask.

    References: #101

  • Fixed namespace.getattr() to raise
    AttributeError on attribute not found
    instead of RuntimeError.

    References: #104

  • Added last_modified accessor to Template,
    returns the time.time() when the module
    was created.

    References: #97

  • Fixed lexing support for whitespace
    around '=' sign in defs.

    References: #102

  • Removed errant "lower()" in the lexer which
    was causing tags to compile with
    case-insensitive names, thus messing up
    custom <%call> names.

    References: #108

  • added "mako.version" attribute to
    the base module.

    References: #110