Skip to main 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

docassemble_mako-0.0.1.tar.gz (62.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

docassemble_mako-0.0.1-py3-none-any.whl (73.7 kB view details)

Uploaded Python 3

File details

Details for the file docassemble_mako-0.0.1.tar.gz.

File metadata

  • Download URL: docassemble_mako-0.0.1.tar.gz
  • Upload date:
  • Size: 62.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for docassemble_mako-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c4e2397983e43d712a5b2d83ab396a16e4be6cbb2d74cd9e51e63dbb4f729ab2
MD5 3796d03dbcc4535d31e3e0388cb6a001
BLAKE2b-256 ebc149fc5598186cd911c396b4f6fadea21db58c7c26d0e9dc82ef68e4d664af

See more details on using hashes here.

File details

Details for the file docassemble_mako-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for docassemble_mako-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd7c64b50b89f5a7eb07a1f1881fd77b60aaeef1087f4a8f9312dea040e7968b
MD5 cd153d8f7819ffcd7401de42267ef04c
BLAKE2b-256 98c6ec56a2110d1e18cd9309e57643efcc50203fac0c3138db0c389d37858d54

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

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