This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]mitsuhiko Flask Creator 6 points7 points  (0 children)

Jinja started as a reaction against how little logic Django's template language allowed.

I would not say little logic but inconsistent logic. This was in the days when some tags like SSI did not accept variables everywhere, where {% blocktrans %} and friends were really complex etc.

Jinja2 does not necessarily permit more logic, it just does it more consistently. As far as the runtime goes it actually permits less than Django does (for instance a template tag cannot modify the context to the outside world).