Mako 0.8.0 Released

49 views
Skip to first unread message

Michael Bayer

unread,
Apr 10, 2013, 7:47:20 PM4/10/13
to mako-d...@googlegroups.com, pylons-...@googlegroups.com
Hey gang -

Mako 0.8.0 is now released.

The biggest change is that the codebase now runs in place for all Python versions from 2.4 (yes, 2.4 still) through 3.3 without any 2to3 step. This feature has actually been sitting in the source repo for many months, but it's time to put it out there and see how far it flies :).

Other changes include a performance enhancement to XML and/or markupsafe-absent escaping, a couple of bug fixes and support for using the __future__ namespace within a template.

Thanks everyone for making Mako one of the routinely used libraries in Python! Download is at: http://www.makotemplates.org/download.html.

0.8.0
- [feature] Performance improvement to the
"legacy" HTML escape feature, used for XML
escaping and when markupsafe isn't present,
courtesy George Xie.

- [bug] Fixed bug whereby an exception in Python 3
against a module compiled to the filesystem would
fail trying to produce a RichTraceback due to the
content being in bytes. [ticket:209]

- [bug] Change default for compile()->reserved_names
from tuple to frozenset, as this is expected to be
a set by default. [ticket:208]

- [feature] Code has been reworked to support Python 2.4->
Python 3.xx in place. 2to3 no longer needed.

- [feature] Added lexer_cls argument to Template,
TemplateLookup, allows alternate Lexer classes
to be used.

- [feature] Added future_imports parameter to Template
and TemplateLookup, renders the __future__ header
with desired capabilities at the top of the generated
template module. Courtesy Ben Trofatter.
Reply all
Reply to author
Forward
0 new messages