Python 3 Template Engine
Is there a template engine for Python 3? It should be f开发者_开发问答lexible (not HTML/XML centric) and fast.
There is Jinja
Texthon is a Python-eval based template engine with a focus on generating readable code. http://texthon.chipsforbrain.org/ No prerequisites aside from Python. Texthon is primarily developed using Python 3.3, but it’s 2.7 compatible as well.
mako is the template I use everyday (with python3) to generate C code. Flexible and not XML/HTML centric.
精彩评论