Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix the Mako-like environment. #94

Merged
merged 2 commits into from

2 participants

@florentx

It seems that the '%' line_statement_prefix was not at the right place.

@mitsuhiko mitsuhiko merged commit 55ea1df into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2012
  1. @florentx
  2. @florentx

    typo

    florentx authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 docs/switching.rst
View
4 docs/switching.rst
@@ -213,9 +213,9 @@ Jinja2 to look more like Mako:
.. sourcecode:: python
- env = Environment('<%', '%>', '${', '}', '%')
+ env = Environment('<%', '%>', '${', '}', '<%doc>', '</%doc>', '%', '##')
-Once the environment is configure like that Jinja2 should be able to interpret
+Once the environment is configured like that Jinja2 should be able to interpret
a small subset of Mako templates. Jinja2 does not support embedded Python code
so you would have to move that out of the template. The syntax for defs (in
Jinja2 defs are called macros) and template inheritance is different too. The
Something went wrong with that request. Please try again.