5 Sep
2010
5 Sep
'10
10:47 a.m.
On 5 September 2010 02:49, Tim Hoffman <zutesmog@gmail.com> wrote:
Please note that DTML is a dead (and horrid) technology. Martin
But zpt is horrible for doing non html/xml based things ;-), What do you think is good alternative in the zope eco system now for templating other types of things (sql, python ...) ?
If you don't need conditions or looping, then string.Template from the standard library is a reasonable choice. For templating SQL I would use SQLAlchemy, as you want appropriate quoting applied to your input. (You don't have to use it's ORM). Laurence