views:

25

answers:

0

Hi I am working on a gem that defines a few view helpers and it heavily relies on concat and capture methods but I've recently discovered it doesn't work with HAML (haven't tested thoroughly, but so far doesn't render concat(nated) stuff).

I read somewhere there was a haml_concat version of concat. So If I just need to change my concat calls to haml_concat calls for it to work with HAML, how can I tell if I am using haml or erb to call the corresponding method?

Can anyone provide an example of a view helper using concat and capture that works with erb and haml?

:)