# config.ru require 'bundler' Bundler.require require "react/source" opal = Opal::Server.new {|s| s.append_path 'app' s.append_path File.dirname(::React::Source.bundled_path_for("react-with-addons.js")) s.main = 'debuger' s.debug = true s.source_map = true } map '/assets' do run opal.sprockets end post "/parse.json" do # File.write('./parse.json', JSON.pretty_generate(comments, :indent => ' ')) # JSON.generate(comments) end get '/' do <<-HTML Salama Debugger
HTML end run Sinatra::Application