down votefavorite <http://stackoverflow.com/questions/29197186/haml-generate-nested-divs-in-loop#>
Is there any way to generate many divs nested each other? I expect print some like this: <div> <div> <div> <div> <div> </div> </div> </div> </div></div> Simple loop is not helping - (1..5).each do |i| %div The result is: <div></div><div></div><div></div><div></div><div></div> -- You received this message because you are subscribed to the Google Groups "Haml" group. To unsubscribe from this group and stop receiving emails from it, send an email to haml+unsubscr...@googlegroups.com. To post to this group, send email to haml@googlegroups.com. Visit this group at https://groups.google.com/group/haml. For more options, visit https://groups.google.com/d/optout.