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
mako_sugar-0.1.0.tar.gz 3.7 kB Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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