Re: [htmltmpl] loop counting

2007-04-30 Thread Mathew Robertson
sure thing - but it does require using H::T::Expr. I use the following snippet as-is to a gallery of photo's. Notice the use of modulo (%). Mathew

[htmltmpl] loop counting

2007-04-30 Thread Michael Greenish
Hello, I have a series of images that I would like to output but I want to limit it to only 4 images per row. I would like to put a br tag to force the 5th, 9th, etc... image to go to the next row. Can I do this completely int the template using an iterator or resettable counter? Thanks, gr

Re: [htmltmpl] Numeric loops

2007-04-30 Thread Arkadiy
Everybody else displays 5 stars, plus "refuse rating" and "Not Interested" options, and highlight current "popular" ratings and allow user to rank, in half increments. On 4/29/07, Alex Teslik <[EMAIL PROTECTED]> wrote: > my $ratingloop = [ map { {RATING => $_} } (1..$ratingmax) ]; > > or something