A super-fast Python templating language

Edit Package python-Mako

Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako's
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas
of componentized layout and inheritance to produce one of the most
straightforward and flexible models available, while also maintaining close
ties to Python calling and scoping semantics.

Refresh
Refresh
Source Files
Filename Size Changed
Mako-0.9.0.tar.gz 0000420354 411 KB
python-Mako.changes 0000011196 10.9 KB
python-Mako.spec 0000002544 2.48 KB
Revision 14 (latest revision is 56)
Stephan Kulow's avatar Stephan Kulow (coolo) accepted request 197231 from Sascha Peilicke's avatar Sascha Peilicke (saschpe) (revision 14)
- update to 0.9.0:
  - [bug] The Context.locals_() method becomes a private underscored
    method, as this method has a specific internal use. The purpose
    of Context.kwargs has been clarified, in that it only delivers
    top level keyword arguments originally passed to template.render().
    [ticket:219]
  
  - [bug] Fixed the babel plugin to properly interpret ${} sections
    inside of a "call" tag, i.e. <%self:some_tag attr="${_('foo')}"/>.
    Code that's subject to babel escapes in here needs to be
    specified as a Python expression, not a literal.  This change
    is backwards incompatible vs. code that is relying upon a _('')
    translation to be working within a call tag.
  
  - [bug] The Babel plugin has been repaired to work on Python 3.
    [ticket:187]
  
  - [bug] Using <%namespace import="*" module="somemodule"/> now
    skips over module elements that are not explcitly callable,
    avoiding TypeError when trying to produce partials.
    [ticket:207]
  
  - [bug] Fixed Py3K bug where a "lambda" expression was not
    interpreted correctly within a template tag; also
    fixed in Py2.4.  [ticket:190] (forwarded request 197228 from dirkmueller)
Comments 0
openSUSE Build Service is sponsored by