[Helma-user] Small patch for loop macro

Hannes Wallnoefer hannes at helma.at
Thu May 10 11:57:30 CEST 2007


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
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loopmacro-hannes.diff
Type: text/x-patch
Size: 1124 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20070510/1c923666/attachment.bin 


More information about the Helma-user mailing list