"Jay, Dylan" wrote:
>
> > -----Original Message-----
> > From: Marco Mariani [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, June 26, 2000 6:39 PM
> > To: Jay, Dylan
> > Subject: Re: [Zope] (no subject)
> >
> >
> > On Mon, Jun 26, 2000 at 02:56:39PM +1000, Jay, Dylan wrote:
> >
> > > > <dtml-if X>
> > > > <a href="a_url">
> > > > link text
> > > > </a>
> > > > <dtml-else>
> > > > link text
> > > > (no link...)
> > > > </dtml-if>
> > >
> > > yes but the repitition of "link text" could be a real pain
> > if "link_text" is
> > > big. Repitition is always a maintance nightmare.
> >
> > So is dtml-always.
>
> No thats not the same thing. If I have a complex expression for X and it
> needs to be changed then it will have to be changed in two places. If I
> forget to update it in both places I would create a bug. My proposal
> elegently avoids this problem.
Personally, if I have a complicated expression I use in multiple places,
I make it into it's own method, and call that from wherever I need it.
But then again, I am rather lazy like that. ;-)
Bill
_______________________________________________
Zope maillist - [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )