mako 1.3.10


pip install mako

  Latest version

Released: Apr 10, 2025


Meta
Author: Mike Bayer
Requires Python: >=3.8

Classifiers

Development Status
  • 5 - Production/Stable

License
  • OSI Approved :: MIT License

Environment
  • Web Environment

Intended Audience
  • Developers

Programming Language
  • Python
  • Python :: 3
  • Python :: 3.8
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Internet :: WWW/HTTP :: Dynamic Content

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.

Nutshell

<%inherit file="base.html"/>
<%
    rows = [[v for v in range(0,10)] for row in range(0,10)]
%>
<table>
    % for row in rows:
        ${makerow(row)}
    % endfor
</table>

<%def name="makerow(row)">
    <tr>
    % for name in row:
        <td>${name}</td>\
    % endfor
    </tr>
</%def>

Philosophy

Python is a great scripting language. Don’t reinvent the wheel…your templates can handle it !

Documentation

See documentation for Mako at https://docs.makotemplates.org/en/latest/

License

Mako is licensed under an MIT-style license (see LICENSE). Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.

1.3.10 Apr 10, 2025
1.3.9 Feb 04, 2025
1.3.8 Dec 07, 2024
1.3.7 Dec 03, 2024
1.3.6 Oct 21, 2024
1.3.5 May 14, 2024
1.3.4 May 14, 2024
1.3.3 Apr 10, 2024
1.3.2 Jan 30, 2024
1.3.1 Jan 22, 2024
1.3.0 Nov 08, 2023
1.2.4 Nov 15, 2022
1.2.3 Sep 22, 2022
1.2.2 Aug 29, 2022
1.2.1 Jun 30, 2022
1.2.0 Mar 10, 2022
1.1.6 Nov 17, 2021
1.1.5 Aug 20, 2021
1.1.4 Jan 14, 2021
1.1.3 May 29, 2020
1.1.2 Mar 01, 2020
1.1.1 Jan 20, 2020
1.1.0 Aug 01, 2019
1.0.14 Jul 20, 2019
1.0.13 Jul 01, 2019
1.0.12 Jun 06, 2019
1.0.11 May 31, 2019
1.0.10 May 10, 2019
1.0.9 Apr 15, 2019
1.0.8 Mar 20, 2019
1.0.7 Jul 13, 2017
1.0.6 Nov 09, 2016
1.0.5 Nov 03, 2016
1.0.4 Mar 10, 2016
1.0.3 Oct 27, 2015
1.0.2 Aug 26, 2015
1.0.1 Jan 22, 2015
1.0.0 Jun 08, 2014
0.9.1 Dec 26, 2013
0.9.0 Aug 27, 2013
0.8.1 May 24, 2013
0.8.0 Apr 10, 2013
0.7.3 Nov 07, 2012
0.7.2 Jul 20, 2012
0.7.1 Jul 09, 2012
0.7.0 Mar 31, 2012
0.6.2 Feb 02, 2012
0.6.1 Jan 28, 2012
0.6.0 Jan 22, 2012
0.5.0 Sep 28, 2011
0.4.2 Aug 05, 2011
0.4.1 Apr 07, 2011
0.4.0 Feb 21, 2011
0.3.6 Nov 13, 2010
0.3.5 Oct 20, 2010
0.3.4 Jun 22, 2010
0.3.3 May 31, 2010
0.3.2 Mar 11, 2010
0.3.1 Mar 07, 2010
0.3.0 Mar 05, 2010
0.2.5 Sep 07, 2009
0.2.4 Dec 23, 2008
0.2.3 Nov 23, 2008
0.2.2 Jun 23, 2008
0.2.1 Jun 16, 2008
0.2.0 Jun 03, 2008
0.1.10 Dec 27, 2007
0.1.9 Sep 25, 2007
0.1.8 Jun 26, 2007
0.1.7 Jun 13, 2007
0.1.6 May 18, 2007
0.1.5 Mar 31, 2007
0.1.4 Mar 10, 2007
0.1.3 Feb 21, 2007
0.1.2 Feb 01, 2007
0.1.1 Jan 14, 2007
0.1.0 Dec 31, 2006

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
MarkupSafe (>=0.9.2)