move to opal dir, still trying
This commit is contained in:
12
test/dummy/app/assets/javascript/application.js.rb
Normal file
12
test/dummy/app/assets/javascript/application.js.rb
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
Reference in New Issue
Block a user