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.2.1.tar.gz 0000489560 478 KB
python-Mako.changes 0000024697 24.1 KB
python-Mako.spec 0000002832 2.77 KB
Revision 46 (latest revision is 55)
Dominique Leuenberger's avatar Dominique Leuenberger (dimstar_suse) accepted request 989969 from Steve Kowalik's avatar Steve Kowalik (StevenK) (revision 46)
- Update to 1.2.1:
  * [bug] [tests] Various fixes to the test suite in the area of exception
    message rendering to accommodate for variability in Python versions as
    well as Pygments.
  * [performance] Optimized some codepaths within the lexer/Python code
    generation process, improving performance for generation of templates
    prior to their being cached. Pull request courtesy Takuto Ikuta.
  * [changed] [py3k] Corrected "universal wheel" directive in setup.cfg so
    that building a wheel does not target Python 2.
  * [changed] [py3k] The bytestring_passthrough template argument is removed,
    as this flag only applied to Python 2.
  * [changed] [py3k] With the removal of Python 2's cStringIO, Mako now uses
    its own internal FastEncodingBuffer exclusively.
  * [changed] Refactored test utilities into mako.testing module. Removed
    unittest.TestCase dependency in favor of pytest.
  * [changed] [setup] Replaced the use of pkg_resources with the importlib
    library. For Python < 3.8 the library importlib_metadata is used.
  * [changed] [py3k] Removed support for Python 2 and Python 3.6. Mako now
    requires Python >= 3.7.
  * [bug] [py3k] Mako now performs exception chaining using raise from,
    correctly identifying underlying exception conditions when it raises its
    own exceptions. Pull request courtesy Ram Rachum.
- Remove python2 gubbins, since it is no longer supported.
Comments 0
openSUSE Build Service is sponsored by