[Zope] Why not ZPT

Jim Kutter jim@ebizq.net
Thu, 8 Aug 2002 16:25:22 -0400


ok. I have to pitch into this too.

I've worked on, and/or built mixed use setups. i.e. HTML rendered by the =
script, or the script embedded in HTML (JSP and PHP)

And they're 100% unmaintainable especially if you aren't the originating =
developer. It's almost impossible to visualize a complex html page from =
a series of out +=3D "HTML stuff" when the script doesn't run, and it's =
quite easy to break something.

I've seen one jsp file return no less than 5 distinct html renderings, =
and it becomes quite a bear to make a change. Add on top of that other =
jsp pages that are copied off the original with minor modifications. Try =
changing the HTML in both of those now. For that matter make 20 copies. =
Then the idea of one html file being used by those scripts becomes a =
very good one. ZPT does just that for us, and that's one of the reasons =
we chose Zope as a platform.

----- Original Message -----=20
From: "Andy McKay" <andy@agmweb.ca>
To: "Thomas Guettler" <zopestoller@thomas-guettler.de>; <zope@zope.org>
Sent: Thursday, August 08, 2002 3:51 PM
Subject: Re: [Zope] Why not ZPT


> > DTML is ugly
>=20
> Only if you use it as a programming language. Its quite simple and =
elegant
> for templating.
>=20
> > ZPT gives you only sometimes the line number where your typo was.
>=20
> So the issue is more the debugging than anything. I'm starting to like =
ZPT,
> its quite nifty, but still mostly use DTML.
>=20
> >     <h1>%s</h1>
> >    </body>
> >   </html>
> > """ % (mytitle, myheading)
>=20
> Sure if your python programmers do the html. What happens when you =
start to
> nest list of items in tables. Every mixing html / python or perl =
project ive
> seen has ended up a total unmaintable inflexible mess after a few =
months and
> few different developers.
> --
>   Andy McKay
>   agmweb consulting
>   http://www.agmweb.ca
>=20
>=20
>=20
>=20
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -=20
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20