Skip to main content
Mako Sugar
===

A preprocessor that adds some syntactic sugar to Mako templates.

Write:

% call foo():
hi
% endcall

instead of:

<%call expr="foo()">
hi
</%call>

Install with:

from mako_sugar import sugar

# Any one of these options...
t = Template(..., preprocessor=sugar())
t = Template(..., preprocess=sugar(exclude=['def', 'call', 'import']))
TemplateLookup(preprocessor=sugar())

Metadata

Release files for mako_sugar 0.1.0

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

Source distribution (sdist)

Source distribution for mako_sugar 0.1.0
File Size Uploaded Provenance Actions
mako_sugar-0.1.0.tar.gz 3.7 kB Without provenance Details for mako_sugar-0.1.0.tar.gz

Release files / mako_sugar-0.1.0.tar.gz

Download URL mako_sugar-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
558891ac05238dbec4052232a4057734362f4e1ecf03e3ac25829d26c94e6390
BLAKE2b-256 checksum
How to use checksums
9712208d0b9e6c6120d413d50b2db2e13c16016d35a788be84cc33f5fcb3835d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for mako_sugar 0.1.0

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.1.0 This release

1 release file 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