[Zope] DTML or TAL

Andy McKay andy@agmweb.ca
Fri, 24 May 2002 07:42:22 -0700


> > ZPT - Basic Presentation Logic - particularly where this will need to be
editable by designers
>
> Nope, I use 'em exclusively, a lot of other people do too..

Nah use DTML Methods

> > DTML Methods - More sophisticated presentation logic (and most likely
more used to generate a section of a page)
>
> Oh PLEASE! There are so many reasons why that is not true... And ZPT is
MUCH easier to use
> for generating sections of pages...

DTML is much easier for those who like splitting everything down into little
chunks. To be honest the best way in my mind is:
- do as much in python
- do simple dtml
- use as much css as possible

> > Python Scripts - Still more complex presentation logic, and/or business
logic.
>
> I'd stick to doing business logic in them...

Unfortunately I agree with Chris there :)

> > Personally I'd hate to see either ZPT or DTML vanish, since I have a
particular use for both - often prototyping mostly in DTML to work things
out quickly and
> > then creating a final version using ZPT and Python Scripts to separate
out the code and presentation where proper design will be necessary...
>
> that's a less-than-optimal way of doing things.

Yeah why bother with ZPT?

> > On the other hand, I'd be keen to see a 'Static Text' document type,
which would be like a DTML Document in many ways - editable from the ZMI,
history
> > storage, history viewing, etc, but not parsed for any tags, so
presentation would (theoretically) be quicker.
>
> Indeed. What you want is dumb data object with presentation layered over
it. Seen Zoep 3
> or the CMF lately? ;-)

Have a look for HTML Document on Zope.org
--
  Andy McKay