[Zope] (no subject)
Bill Anderson
bill@libc.org
Tue, 27 Jun 2000 13:04:26 -0600
"Jay, Dylan" wrote:
>
> > -----Original Message-----
> > From: Marco Mariani [mailto:m.mariani@imola.nettuno.it]
> > 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