Skip to main content

Mako Templates for Python

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.

Metadata

Release files for docassemble-mako 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docassemble-mako 0.0.2
File Size Uploaded Provenance Actions
docassemble_mako-0.0.2.tar.gz 64.2 kB Without provenance Details for docassemble_mako-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for docassemble-mako 0.0.2
File Interpreter ABI Platform Actions
docassemble_mako-0.0.2-py3-none-any.whl Python 3 none any Details for docassemble_mako-0.0.2-py3-none-any.whl

Total release size: 139.6 kB

Release files / docassemble_mako-0.0.2.tar.gz

Download URL docassemble_mako-0.0.2.tar.gz
Size 64.2 kB
Tags Source
SHA-256 checksum
How to use checksums
72bbfce729f92bcec22536865a885db15adbd06781cd1fd70c6cf093712a8a4c
BLAKE2b-256 checksum
How to use checksums
a46c936f034fa262197b2105e4e72dec45d0ceef1d7ce115bbce1193294a08e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Release files / docassemble_mako-0.0.2-py3-none-any.whl

Download URL docassemble_mako-0.0.2-py3-none-any.whl
Size 75.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d186a2d7d9601de4d644514ce3fd85dd1c2896483f3bfa3a90fed636ec038972
BLAKE2b-256 checksum
How to use checksums
63d1930ac5eea8bd503c2c9f3aa11062bad937ff0307b7bc1f7238456e6286fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.7

Security for docassemble-mako 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page