This is a list of template engines and languages which are similar to, or inspired by, the Django Template Language. Some of them can be used in Django as a substitute for DTL, others are listed mostly for the cross-pollination value.

Jinja2

Inspired by DTL, has some different properties. Allows logic to be expressed in templates more easily (many see this as a bad thing).

Angular

Angular's use of {{ var | filter }} syntax seems to be taken from Django templates. I (Shai) have seen no acknowledgment of this, but I haven't looked very hard.

Synth

Synth is a C++ template engine, which includes an implementation of DTL. It can by used from Django by way of django-synth; See small discussion about it, including some promising performance comparisons, here.

Grantlee

Grantlee is an older C++ implementation of DTL, for use in C++ (and specifically, Qt-based programs). Does not appear to be usable from Django in particular or Python in general.

Of specific interest: A list of differences from Django.

Twig

A django-like templating engine for PHP.

Nunjucks

Mozilla's implementation of Jinja in Javascript.

Liquid templating language

Ruby templating library, extracted from Shopify. The syntax for tags, variables, and filters is the same as Django's.

Last modified 10 years ago Last modified on Oct 28, 2014, 8:23:31 AM
Note: See TracWiki for help on using the wiki.
Back to Top