Consider using other classes in blocks as well. I wrote about it in my blog, and although I use ERB in it, it was meant for Haml, due to shorten it's long commands.
http://iain.nl/2008/04/bringing-objects-to-views/ On Apr 17, 3:49 pm, Matt Grande <[EMAIL PROTECTED]> wrote: > Great, this is exactly what I was looking for. And I never even > thought of a helper! I think I'll go that route. > > - Matt. > > On Apr 16, 6:00 pm, Wincent Colaiuta <[EMAIL PROTECTED]> wrote: > > > El 16/4/2008, a las 22:50, Jacques Crocker escribió: > > > > You will need the pipe on all lines, including the last one. It's a > > > non-ideal solution, so you'll probably want to move that into a > > > helper, which I've found this haml limitation encourages you to do and > > > is actually a positive benefit. > > > Yep, it's some of that syntactic vinegar that encourages you to keep > > your views as clean and uncluttered as possible. > > > Cheers, > > Wincent > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
