RJS templates without the R!
Fri Nov 17 12:02:00 UTC 2006
page.call but this is ugly and really highlights its shortcomings. It would probably be fair to say that RJS as it is currently implemented, is a leaky abstraction. Not only that, but RJS is tightly coupled to the Prototype JS library and Scriptaculous – for fans of one of the many other JS core/effects libraries out there you are left with either the option of trying to port RJS to your library of choice, using page.call commands or resorting to the old callbacks method.
js() helper method that encodes the output of your ERb output block in JSON. And finally, you can use whatever JS library you like.