I don't like rjs, it just confuses me but I can see it being useful for the
folks that do.
Why would you get rid of the page object? I think should work just as it
would within an rjs file. The page object makes it possible to do this:
page << %Q{
var foo = "hello world!";
alert(foo);
}
Which is usually how I write my rjs ;-) But hey, it's your filter...
chris
On Wed, Mar 25, 2009 at 2:22 PM, [email protected] <
[email protected]> wrote:
>
> Thanks Chris,
>
> I checked out the source. Creating a filter that simply wraps the text
> in a script tag is pretty easy.
> The tricky part is allowing people to call the rjs methods without the
> page object explicitly stated on each call.
> eg:
> :rjs
> visual_effect :shake, 'hi'
>
> instead of:
> :rjs
> page.visual_effect :shake, 'hi'
>
> So before I go hacking at this...do haml lovers see any real utility
> in having this feature?
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---