Login to your account |
Other Options |

There are a number of (very good) templating systems and languages available for Python. They fall in to one of two camps; either they are XML based, like Genshi, or they are text based, like Mako. Most programmers favour one or the other, but there is far from a consensus over which is better.
I'd like to use this debate to gather reasons for using one over the other in the context of web development. I suspect there will be no clear winner, but it should serve as a useful resource for those faced with the decision!
NB. You can post code with the [code] bbcode tag. Many languages are supported. e.g.
[code python]
print "Hello, World!"
[/code]
I guess by text you mean all text that is not (supposed to be) XML.
I compared the sources shown here text [makotemplates.org] versus XML [genshi.edgewall.org]and I still don't like reading programming language source written in XML format. XML is supposed to be human writable/readable but even with automatic indenting tools I find it is as welcoming as Lisp syntax - which isn't very.
So all I have as an argument is personal taste, but its what I'd use to choose TEXT.
- Paddy.