Well, first of all, all the helpers you might use with ERB will work 
with Haml. In order to shield you from the nastiness of building HTML by 
hand, though, Haml provides an "open" helper, which creates an HTML tag. 
See 
http://haml.hamptoncatlin.com/docs/rdoc/classes/Haml/Helpers.html#M000014 
for examples.

- Nathan

oomii wrote:
> Hello.
>
> I am attempting to write helpers with HAML... but dont really know
> where to start.  I am coming from Markaby but had to research other
> avenues because I was having some conflicts with Markaby's template
> handler.
>
> I would like to be able to define helpers in... say... the
> ApplicationHelper module.  and be able to call those functions in my
> haml view template... and have it generate the corresponding html.
>
> How would I achieve this?
>
> Thanks in advance.
>
> Joe
>
>
> >
>
>   


--~--~---------~--~----~------------~-------~--~----~
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