Mako 0.3.5 Released

3 views
Skip to first unread message

Michael Bayer

unread,
Oct 20, 2010, 12:10:54 PM10/20/10
to mako-d...@googlegroups.com
Mako 0.3.5 is released. A few changes including a try/except around the "markupsafe" import with a fallback. I've not been able to get an answer from anyone if the requirement in setup.py is also an issue on GAE, assuming it's not.

Personally the most exciting change is multiline support for ${}. Now you can do things like this:

<a href="${url(
controller='foo',
action='bar',
id=some_id
)}">link</a>

handy !

Mako 0.3.5 is available at:

http://www.makotemplates.org/download.html

Changelog:

0.3.5
- The <%namespace> tag allows expressions
for the `file` argument, i.e. with ${}.
The `context` variable, if needed,
must be referenced explicitly.
[ticket:141]

- ${} expressions embedded in tags,
such as <%foo:bar x="${...}">, now
allow multiline Python expressions.

- Fixed previously non-covered regular
expression, such that using a ${} expression
inside of a tag element that doesn't allow
them raises a CompileException instead of
silently failing.

- Added a try/except around "import markupsafe".
This to support GAE which can't run markupsafe.
[ticket:151] No idea whatsoever if the
install_requires in setup.py also breaks GAE,
couldn't get an answer on this.

Alexandre Conrad

unread,
Oct 20, 2010, 1:12:08 PM10/20/10
to mako-d...@googlegroups.com
w00t! Thanks Mike!

2010/10/20 Michael Bayer <mik...@zzzcomputing.com>:

> --
> You received this message because you are subscribed to the Google Groups "Mako Templates for Python" group.
> To post to this group, send email to mako-d...@googlegroups.com.
> To unsubscribe from this group, send email to mako-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/mako-discuss?hl=en.
>
>

--
Alex | twitter.com/alexconrad

Eric Ongerth

unread,
Oct 20, 2010, 9:55:19 PM10/20/10
to Mako Templates for Python
These are very welcome improvements... thanks!
Reply all
Reply to author
Forward
0 new messages