Python template engines offer high reusability of markup code and the following features are used by content developers most of the time:
* Includes: useful to incorporate some snippets of content that in most cases are common to the site, e.g. footer, scripts, styles, etc.
* Extends: useful to define a master layout for the majority of the site content with placeholders, e.g. sidebar, horizontal menu, content, etc. The content developers extend the master layout by substituting available placeholders.
* Widgets: usually small snippets of highly reusable markup, e.g. list item, button, etc. The content developers use widgets to increase readability and enforce consistency of design.
All mentioned features above are examined for various template engines (django, jinja2, mako, tornado and wheezy.template) in the following post:
http://mindref.blogspot.com/2012/10/python-templates-benchmark.html
The test is executed in isolated environment using CPython 2.7 but can be run for Python 3.3 and/or PyPy 1.9. Source code is here:
https://bitbucket.org/akorn/helloworld
> Subject: RE: Fastest template engine
> Date: Fri, 19 Oct 2012 11:34:41 +0300
> --
>
http://mail.python.org/mailman/listinfo/python-list