All the ERB helpers should work with Haml - if they don't, that's a bug. The Haml helpers do require Haml, so you should avoid using them in a mixed environment. The reason things like haml_concat and capture_haml exist is to provide something for non-Rails environments.
railsjedi wrote: > Hi. I'm trying to write some view helpers that take blocks. Running > into the issue that some views are HAML and some are ERB. So erb seems > to break haml_tag, and haml seems to break content_tag. Also concat vs > haml_concat, and capture vs capture_haml. All very confusing. Seems > like helpers should be halpers, and work in all contexts no matter the > view layer. > > Is there an easy way to convert from one to the other? Maybe by just > wrapping it in a capture block or something? > > Thanks > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
