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-1.3.0.tar.gz 0000386252 377 KB
python-Mako.changes 0000026545 25.9 KB
python-Mako.spec 0000002864 2.8 KB
Revision 51 (latest revision is 55)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 1131715 from Dirk Mueller's avatar Dirk Mueller (dirkmueller) (revision 51)
- update to 1.3.0:
  * Mako 1.3.0 bumps the minimum Python version to 3.8
  * Python 3.12 is now supported explicitly.

- Update to 1.2.4
    correctly interpret quoted sections individually
  * Fixed some issues with running the test suite which would
    be revealed by running tests in random order.
- Use libalternatives instead of update-alternatives.
    emit warnings under Python 3.10.
 * The default template encoding is now utf-8
- update to 1.0.8
- fix up build for SLE11
- python3 package added
  - Added new "loop" variable to templates, is provided within a %
    for block to provide info about the loop such as index,
    first/last, odd/even, etc.  A migration path is also provided
    for legacy templates via the "enable_loop" argument available
    on Template, TemplateLookup, and <%page>.
  - Added a real check for "reserved" names, that is names which
    are never pulled from the context and cannot be passed to the
  - The html_error_template() will now apply Pygments highlighting
    to the source code displayed in the traceback, if Pygments if
  - Added support for context managers,
  - Added class-level flag to CacheImpl "pass_context"; when True,
    the keyword argument 'context' will be passed to
  - Template caching has been converted into a plugin system,
    whereby the usage of Beaker is just the default plugin.
    Template and TemplateLookup now accept a string "cache_impl"
    parameter which refers to the name of a cache plugin,
Comments 0
openSUSE Build Service is sponsored by