Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

Release history Release notifications

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 hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page