Skip to content

Templating in Python

Mainstream Python

  • Django templates
  • Jinja2
  • ZPT / Chameleon
  • Mako

Chameleon = faster ZPT by compiling to python bytecode.

(All are supported by PyCharm OOTB, except Mako).

Exotic Python

More + benchmarks: https://github.com/marrow/cinje/wiki/Benchmarks

Internal Python DSLs

Using context managers

Using mutable objects

Using extended syntax (a la JSX)

Using functions

More

https://wiki.python.org/moin/Templating

Not Python

ZPT-likes

Others

Back to top