-----Original Message----- From: zope-bounces+andy=nnu.com@zope.org [mailto:zope- bounces+andy=nnu.com@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@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 )
.myclass { background-color: &dtml-mycolor;; }
I do the same thing with ZPT
.myclass { background-color: <tal:block tal:replace="mycolor" />; } Yes, it does the same on this case, but for me the sintax with dtml is clearer and ZPT only adds uneccessary complexity here. On This case, on my old products and on ZSqlMethods are the only cases where I use DTML.
Anyway, thanks for the syntax, I hadn't figured it out. Regards, Josef
participants (2)
-
Andy Yates -
Josef Meile