Skip to content
Myr

Fix the Mako-like environment.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florent Xicluna · committed by Florent Xicluna · parent 99b2285 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/switching.rst+1 added-1 removed
211 unmodified lines
212Jinja2 to look more like Mako:213214.. sourcecode:: python215216 env = Environment('<%', '%>', '${', '}', '%')216 env = Environment('<%', '%>', '${', '}', '<%doc>', '</%doc>', '%', '##')217218Once the environment is configure like that Jinja2 should be able to interpret219a small subset of Mako templates. Jinja2 does not support embedded Python code220so you would have to move that out of the template. The syntax for defs (in
22 unmodified lines