In a filter, normal haml syntax doesn't work. The best you can do is use #{}
to call out to a helper function.
:javascript
#{"alert('hi');" * 3}
Chris
On Wed, Jan 28, 2009 at 3:47 AM, [email protected] <[email protected]>wrote:
>
> Hi!
>
> My question is simple. How can I use Ruby blocks in filters
> (javascript for example). Something like this :
>
> :javascript
> - 3.times do
> alert('I like HAML');
>
> Nicolas.
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---