Software Details:
Version: 1.0.1
Upload Date: 1 Mar 15
Distribution Type: Freeware
Downloads: 92
Mako's syntax and API borrows from the best ideas of many others, including Django templates, Myghty, Cheetah and Genshi.
Features:
- Simple API
- Fast rendering
- Bench suite included
- Control structures
- Straight Python blocks
- Inline or at the module-level
- Plain old includes
- Callable blocks
- Inheritance
What is new in this release:
- Fixed bug in decode.<encoding> filter where a non-string object would not be correctly interpreted in Python 3.
- Fixed bug in Python parsing logic which would fail on Python 3 when a "try/except" targeted a tuple of exception types, rather than a single exception.
- mako-render is now implemented as a setuptools entrypoint script; a standalone mako.cmd.cmdline() callable is now available, and the system also uses argparse now instead of optparse.
- The mako-render script will now catch exceptions and run them into the text error handler, and exit with a non-zero exit code.
What is new in version 0.9.0:
- Fixed bugs:
- Fixed the babel plugin to properly interpret ${} sections inside of a "call" tag, i.e. <%self:some_tag attr="${_('foo')}"/>.
- The Babel plugin has been repaired to work on Python 3.
- Using <%namespace import="*" module="somemodule"/> now skips over module elements that are not explcitly callable, avoiding TypeError when trying to produce partials.
- Fixed Py3K bug where a "lambda" expression was not interpreted correctly within a template tag; also fixed in Py2.4.
What is new in version 0.7.2:
- Fixed regression in 0.7.1 where AST parsing for Py2.4 was broken.
What is new in version 0.7.1:
- Control lines with no bodies will now succeed, as "pass" is added for these when no statements are otherwise present.
- Fixed some long-broken scoping behavior involving variables declared in defs and such, which only became apparent when the strict_undefined flag was turned on.
- Can now use strict_undefined at the same time args passed to def() are used by other elements of the <
Comments not found