On Wed, Dec 4, 2013 at 12:36 PM, Errol Siegel <[email protected]> wrote: > Say, for example, that I want to output a list like this: > > <ul> > <li><span class="some-class">Something</span> - More text - <span > class="other-class">even more text</span></li> > <li><span class="some-class">Something</span> - More text - <span > class="other-class">even more text</span></li> > <li><span class="some-class">Something</span> - More text - <span > class="other-class">even more text</span></li> > </ul> > > Are there any built-in tags (or known extensions) for iterating over a list > like that? It would be nice to avoid duplicating all those tags for a long > list. > > I know I can just write my own tags to do this, but before I do so I wanted > to see if this feature already exists. > > Thanks! >
Errol, It's not clear to me which parts you expect to be different. We have iterators like children:each but there's nothing that takes an arbitrary set of data for iteration. Are you looking for something like this? <r:iterate collection="…"> <r:item>… This doesn't exist. But it's hard for me to understand what you want the radius code to look like. Can you give an example of that? -Jim -- Write intention revealing code #=> http://www.clean-ruby.com Jim Gay Saturn Flyer LLC 571-403-0338 -- --- You received this message because you are subscribed to the Google Groups "Radiant CMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
