Opal
Opal is a Ruby to JavaScript source-to-source compiler
Opal is a Ruby to JavaScript source-to-source compiler. It comes packed with the Ruby corelib you know and love. It is both fast as a runtime and small in its footprint. The lib directory holds the Opal parser/compiler used to compile Ruby into JavaScript. It is also built ready for the browser into opal-parser.js to allow compilation in any JavaScript environment. This directory holds the Opal runtime and corelib implemented in Ruby and JavaScript. opal-parser allows you to eval Ruby code directly from your HTML (and from Opal) files without needing any other building process. Opal.compile is a simple interface to just compile a string of Ruby into a string of JavaScript code. See the website for more detailed instructions and guides for Rails, jQuery, Sinatra, rack, CDN, etc.