class Opal::SimpleServer
def call(env)
def call(env) case env['PATH_INFO'] when %r{\A/#{@prefix}/(.*)\.m?js\z} path, _cache_invalidator = Regexp.last_match(1).split('?', 2) call_js(path) else call_index end rescue NotFound => error [404, {}, [error.to_s]] end