Closed raviagrwl420 closed 11 years ago
Decaf integrates Ruby at the same level as JavaScript. JavaScript is still there, so you can use both at the same time. Here's a little bit about how Ruby is connected to the DOM. It doesn't explain the whole inner workings, but it's a start.
The detection of JavaScript or Ruby is probably then done using the "type" attribute of the "script" tag. @timahoney am I right?
Ah yeah. Sorry, I should write something more explicit about that. You can specify type='text/ruby'
to specify that it's Ruby.
I want to know how exactly Decaf integrates Ruby with WebKit. Is it possible to handle the DOM through both JavaScript and Ruby or you have to move completely to Ruby?