Sha256: cb12f905a098c1b061e2c4ba727eda220ea6b8835baa3234ca3a425df873744f
Contents?: true
Size: 707 Bytes
Versions: 3
Compression:
Stored size: 707 Bytes
Contents
# config.ru require 'bundler' Bundler.require Opal::Processor.source_map_enabled = true opal = Opal::Server.new {|s| s.append_path './' s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js")) s.main = 'example' s.debug = true } map opal.source_maps.prefix do run opal.source_maps end map '/assets' do run opal.sprockets end get '/' do <<-HTML <!doctype html> <html> <head> <title>Hello React</title> <script src="/assets/react-with-addons.js"></script> </head> <body> <div id="container"></div> <script src="/assets/example.js"></script> </body> </html> HTML end run Sinatra::Application
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
react.rb-0.2.1 | example/basic-jsx/config.ru |
react.rb-0.2.0 | example/basic-jsx/config.ru |
react.rb-0.1.0 | example/basic-jsx/config.ru |