require 'bundler' Bundler.require html = < Opal corelib and runtime specs HTML map '/assets' do env = Opal::Environment.new env.append_path 'spec' run env end map '/' do run lambda { |env| [200, {'Content-Type' => 'text/html'}, [html]] } end