[Helma-user] Small patch for loop macro

Hannes Wallnoefer hannes at helma.at
Thu May 10 15:47:05 CEST 2007


Ok, I just committed my patch. If anybody thinks this was premature
(e.g. because we should discuss the itemPrefix/Suffix parameter names,
or implementation) please drop a message.

hannes


2007/5/10, Hannes Wallnoefer <hannes at helma.at>:
> Hi Maks,
>
> thanks for the patch. The itemPrefix/Suffix parameters make sense, but
> by composing a new string for each item instead of just using
> res.write() you add a lot of overhead. I slightly modified your patch,
> see attachment. Can you (or somebody else) please give it a try?
>
> hannes
>
> 2007/5/10, Maksim Lin for technical support mailling lists
> <maksim_lin at ngv.vic.gov.au>:
> > Hi,
> >
> > Ever since I discovered the loop macro (via the new reference docs) I've
> > found it *very* handy but one thing I missed was the ability to set a
> > prefix/suffix on each individual items skin render. So I've attached a
> > small patch to add this functionality to HopObject loop macro.
> >
> > I find it very handy since sometimes I'm rendering items of a collection
> > as HTML list items, sometimes as options in a select element, sometimes
> > as just a comma seperated list and this way I can do it all with one
> > very simple skin.
> >
> > Maks.
> >
> > _______________________________________________
> > Helma-user mailing list
> > Helma-user at helma.org
> > http://helma.org/mailman/listinfo/helma-user
> >
> >
> >
>
>


More information about the Helma-user mailing list