Re: More flexible looping mechanism?
Sam Tregar <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.html-template |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 13 Apr 2005, Jonathan Lang wrote: > How difficult would it be to implement an alternative to the existing > looping technique, where the values to be looped through are passed to the > template via a bunch of lists instead of a list of hashes? Trivial. Create a sub-class which uses filter to turn your syntax into normal loops. Create a param() which takes "a bunch of lists" and turns them into a list of hashes. -sam ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click