Actually, you can do....
%body{ :onload => visual_effect(:fade, 'notice') }
The things in {} evaluate as ruby!
-hampton.
On 6/19/07, Tom <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> so far I like Haml. The problem I have is how to do this in Haml:
>
> <body onload='<%= visual_effect(:fade, 'notice') %>'>
>
> Sure, i could do
> %body{ :onload => 'new Effect.Fade("notice",{});' }
> but that's neglecting one abstraction layer.
>
> Thanks for any help, Tom
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---