[Zope] DTML vs ZTP
Andy Yates
andy at nnu.com
Tue Dec 7 10:16:18 EST 2004
> -----Original Message-----
> From: zope-bounces+andy=nnu.com at zope.org [mailto:zope-
> bounces+andy=nnu.com at zope.org] On Behalf Of Paul Winkler
> Sent: Tuesday, December 07, 2004 9:05 AM
> To: Zope
> Subject: Re: [Zope] DTML vs ZTP
>
> On Tue, Dec 07, 2004 at 09:24:21AM -0500, Ian Nunn wrote:
> > I'm a third of the way through the Zope Book and understand the
> difference as it is written. As you can appreciate, in learning a new
> technology, what is missing is the experience that would guide your
focus.
> What I would like is an idea of how real world developers use these in
the
> following senses. Do you use one exclusively (in conjunction with
Python)?
> Do you use primarily one or the other? Do you use both roughly
equally?
> Are there classes of applications where you have found one is
preferred?
> Your advice would be welcome.
> >
>
> I primarily use ZPT largely because it's less "do what I mean".
> DTML has too much magic which is hard to debug.
> Not that ZPT is perfect :-)
>
> I try to use DTML only for simple variable substitution in non-XML
> documents such as dynamically generated CSS.
> e.g.
>
> .myclass {
> background-color: &dtml-mycolor;;
> }
>
I do the same thing with ZPT
.myclass {
background-color: <tal:block tal:replace="mycolor" />;
}
> Also for ZSQLMethods.
>
> --
>
> Paul Winkler
> http://www.slinkp.com
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
More information about the Zope
mailing list