* Yehuda suggested that we have a javascript file for each framework
(prototype.rails.js, jquery.rails.js, etc...) which implement the
helpers. Rails js helpers would generate js code, implemented by
prototype.rails.js or another depending on the choosen framework.
On Wed, Jan 28, 2009 at 14:46, Erwan Barrier <erwan....@gmail.com> wrote:
* Yehuda suggested that we have a javascript file for each framework
(prototype.rails.js, jquery.rails.js, etc...) which implement the
helpers. Rails js helpers would generate js code, implemented by
prototype.rails.js or another depending on the choosen framework.So Rails would generate the same set of JavaScript code which would use some kind of an API abstracting away jQuery and Prototype?
So Rails should never really generate any JS for these helpers. Just
decorate them with the proper class names/attributes.
My only concern with this approach is the enormous amount of
bikeshedding that will no doubt take place. However custom
microformats and default implementations in prototype and jquery, and
we've 'won' from my POV :)
--
Cheers
Koz