[Zope] DTML vs ZTP
Dennis Allison
allison at sumeru.stanford.EDU
Tue Dec 7 11:16:28 EST 2004
We fall into pretty much the same bin as Johan. We make extensive use of
Python scripts, External Methods, and custom Products and use DTML for
presentation. We are database driven so there are lots and lots of SQL
queries. We do use TAL occasionally, but it is not the local choice.
A large part of the site content is statically precomputed from an XML
represprestation and is served as vanilla HTM.
On Tue, 7 Dec 2004, Johan Carlsson wrote:
> 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.
>
> My path is a bit against the main stream.
> I use DTML exclusively and try to avoid using ZPT.
>
> My reasons is:
>
> 1. DTML is faster
>
> 2. DMTL is much easier to read and understand. Hence easier to maintain.
> (TAL is (IMO) hard to read and it's hard to format when using in
> tags, and when used with macros it impossible to understand the logic
> of things.
>
> 3. Seperation of logic and content is (IMO) more correctly enforced by
> conventions that technical choises. You can write logic in TAL and
> you can avoid writing logic in DTML. It's all up to you.
>
> 4. I know DTML to me DTML is more intuitive that TAL and I can use it
I> for every thing including in ZSQL Method.
> DTML work more like other common markup language that TAL.
>
> 5. The original the TAL design had requirement to be XML compliant
> and to be able to cloak it self inside the tags to hide it self
> from HTML editing tools. This isn't a real requirement for me
> so I can ignore it.
> And if I would run my code through a XML parser och validator it
> would be the resulting code I would like to validate anyway.
>
> No this is a controversial view, but that's my view.
>
> Johan
> _______________________________________________
> 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