You can use any Ruby constructs in Haml. - for i in 0..10 %img{:src => ("Truth%03d.jpg#full" % i)}/
On Mon, Dec 20, 2010 at 1:06 PM, Nate <natebe...@gmail.com> wrote: > I've got some tags that repeat numerically like so: > > %img{:src => "Truth002.jpg#full"}/ > %img{:src => "Truth003.jpg#full"}/ > %img{:src => "Truth004.jpg#full"}/ > %img{:src => "Truth005.jpg#full"}/ > # and so on for a few hundred lines > > How do I say repeat this 'n' times and have it index? > > Thanks, > Nate > > http://grapepudding.com > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to h...@googlegroups.com. > To unsubscribe from this group, send email to > haml+unsubscr...@googlegroups.com <haml%2bunsubscr...@googlegroups.com>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to h...@googlegroups.com. To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/haml?hl=en.