[Zope-dev] DTML is dead, long live DTML ;-)

Laurence Rowe l at lrowe.co.uk
Sun Sep 5 06:47:34 EDT 2010


On 5 September 2010 02:49, Tim Hoffman <zutesmog at 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


More information about the Zope-Dev mailing list