From: Florent Xicluna Date: Sun, 5 Feb 2012 11:14:08 +0000 (+0100) Subject: Fix the Mako-like environment. X-Git-Tag: 2.7~44^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e04e32fac9382dc7051ef4361ff770395c7b77ac;p=thirdparty%2Fjinja.git Fix the Mako-like environment. --- diff --git a/docs/switching.rst b/docs/switching.rst index ba3cfb1f..6d9abb10 100644 --- a/docs/switching.rst +++ b/docs/switching.rst @@ -213,7 +213,7 @@ Jinja2 to look more like Mako: .. sourcecode:: python - env = Environment('<%', '%>', '${', '}', '%') + env = Environment('<%', '%>', '${', '}', '<%doc>', '', '%', '##') Once the environment is configure like that Jinja2 should be able to interpret a small subset of Mako templates. Jinja2 does not support embedded Python code