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())
===
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)
| 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 |