Skip to main content

Syntax sugar for Python Mako templates

Project description

Mako Sugar

A preprocessor that adds some syntactic sugar to Mako templates.


% call foo():
% endcall

instead of:

<%call expr="foo()">

Install with:

from mako_sugar import sugar

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

Project details

Download files

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

Files for mako_sugar, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size mako_sugar-0.1.0.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page