On Wed, Jan 28, 2009 at 1:50 PM, Mislav Marohnić
<[email protected]>wrote:

> On Wed, Jan 28, 2009 at 14:46, Erwan Barrier <[email protected]>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?
>

If that's the case... I assume the purpose of these helpers is that we'd
rather be writing Ruby than Javascript. If that's geneally true, I would
think the API would be easier to build and maintain in Ruby than Javascript
-- and it would probably mean the code that ultimately gets sent to the
client is smaller, lighter, and cleaner.

The only advantage I see of building it in Javascript is to also decouple it
from Ruby -- to make a One True Javascript API, which any server-side
framework, in any language, can generate code for.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to