Sha256: 9f172a8103bc9a018b9145d0dc8f268bd8771194e9d8b11e668af93363ac3607

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

require "opal"

# Uncomment the following to print out you're hello-world with Opal:
#
#   puts "hello world!"
#
# The following will append a hello-world to your <body> element:
#
#   require "native"
#   $$[:document].addEventListener :DOMContentLoaded do
#     $$[:document][:body][:innerHTML] += '<h2>Hello World!</h2>'
#   end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opal-rails-2.0.2 lib/generators/opal/install/templates/application.js.rb
opal-rails-2.0.1 lib/generators/opal/install/templates/application.js.rb
opal-rails-2.0.0 lib/generators/opal/install/templates/application.js.rb