Get started with opal CDN

MIT licensed

Opal: Compiles Ruby to JS for web apps using Ruby syntax.

Tags:
  • opal
  • opal.js
  • opalrb
  • ruby
  • compiler
  • javascript
  • language

Stable version

Copied!

How to start using opal CDN


// Opal script using the CDN link

require "opal"

using Opal

Opal.ready do
  button = Opal::JQuery("#my-button")

  button.on "click", ->
    alert "Hello, World!"
end
Copied!
Copied!

All versions