> Haml::Engine.new(@text).to_html

where would this go? at the end of the helper method?

thanks
-sb





On Feb 6, 11:18 am, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
> Haml::Engine.new(@text).to_html
>
> Hope that helps.
>
> - Nathan
>
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > I am experimenting with haml as an alternative to *yuk* RHTML and like
> > it very much so far.
>
> > However, I am unable to figure how to use haml in ruby code or inside
> > ahelpermethod in particular.
>
> > something like that:
>
> > module SomeHelper
>
> >   def my_helper_method
> >     # produce some haml here
> >    HamlProducingMethodIAmUnableToFigureOut(<<-EOF)
> >     %h1 Title
> >      %p voila
> >     EOF
> >   end
>
> > end
>
> > Can anybody help me on that, please?
>
> > Regards
> > Peter


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