Replacing Django's Template Language With Jinja2 @ Irrational Exuberance

Will Larson's blog about programming and other things.

In this example we're going to take a closer look at the flexibility of Django's loose coupling philosophy by replacing its default templating language with Jinja2. Jinja2 is a very similar template language to the one provided by Django, but provides additional functionality like more flexible if syntax in templates, the option to raise an error when an undefined object is operated upon within templates (as opposed to Django's templating language which will always fail silently), and more flexible solutions for retrieving templates.

MarcWorrell.com/ created on 2008-11-05 17:41:53/ modified on 2008-11-05 17:41:53/ mail me at