that's nice and elegant, thanks.
On Tue, 2008-11-11 at 08:43 -0800, Howard Lewis Ship wrote: > If you inject the Loop component and make it a property, you can refer > to loop.index, which saves you from having to create an index > property. > > On Tue, Nov 11, 2008 at 2:55 AM, Joel Halbert <[EMAIL PROTECTED]> wrote: > > Hi, > > > > Thoughts please on the following enhancements to Loop: > > > > > > a) utility "parameters/methods" for isFirst and isLast iteration, maybe > > something like: > > > > <t:loop .... > > > <t:parameter name="isFirst"> > > // hello! > > </t:paramter> > > <t:parameter name="isLast"> > > // bye! > > </t:paramter> > > </t:loop> > > > > b) easy access to the current index value, without having to provide > > your own. Although you can provide your own index, this gets messy when > > using inner loops, since you need to reset the inner loop index on every > > iteration of the outer loop. This seems like boiler plate that could be > > incorporated into the framework. > > > > > > If there are already nice patterns for doing the above please shout, if > > not then let us know your thoughts on making these part of the framework > > > > Rgs, > > > > Joel > > > > > > -- > > SU3 Analytics Ltd > > The Print House > > 18 Ashwin Street > > E8 3DL > > London > > > > Tel: +44 (0) 20 3051 8637 > > Fax: +44 (0) 20 8196 2215 > > Mob: +44 (0) 79 7431 0685 > > www.su3analytics.com > > > > SU3 Analytics Ltd is a company registered in England and Wales under > > company number 06639473 at registered address 61b Oxford Gardens, London > > W10 5UJ, United Kingdom. > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- SU3 Analytics Ltd The Print House 18 Ashwin Street E8 3DL London Tel: +44 (0) 20 3051 8637 Fax: +44 (0) 20 8196 2215 Mob: +44 (0) 79 7431 0685 www.su3analytics.com SU3 Analytics Ltd is a company registered in England and Wales under company number 06639473 at registered address 61b Oxford Gardens, London W10 5UJ, United Kingdom. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]