pyratemp is probably (one of) the smallest complete template-engines for Python (with about 500 LOC). It has a very small set of special syntax in the templates. This reduces complexity and the probability of bugs and lead to an easy-to-use and intuitive user-interface. It uses embedded Python-expressions (in a "sandbox"), is well documented, has full Unicode-support, and produces very good error-messages, which is very useful when creating new templates.
|Tags||Internet Web Dynamic Content Software Development Libraries Python Modules User Interfaces Text Processing Markup|
Release Notes: default() in the template now also catches AttributeError, so that @!default("a.b", "")!@ also works if a exists but b does not.
Release Notes: This is a backport of 0.3.2 to Python <=2.5.
Release Notes: New convenience functions to create HTML files and email messages have been added (in tools.py). A bug in the pseudo-sandbox has been fixed, and the template can now use set()/isinstance()/dir(), list comprehensions, and things like sorted(..., key=lambda x: myf(x)).
Release Notes: This is a backport of 0.3.1 to Python <=2.5.
Release Notes: This release adds Python 3 support (mixed >=2.6/3.x), LaTeX/mail-header escaping, distutils-installation, renaming of yaml2pyratemp.py to pyratemp_tool.py, and small bugfixes.