I'm trying to find a nice HAML solution to this problem, so I've only
been able to write it in RHTML.

I'm looping over a collection in a list (or table) and want to break
out if a condition is met and then restart a new list. For instance if
I had a list of things ordered alphabetically and I want them in a
<ul> and every time the first letter of the list item is different
from the previous one I want to close the list, create a <h2> for that
letter and then restart the list.

http://pastie.org/568579

Thanks

Julian

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to