require 'rack/d3js' # Like any rack application/middleware, # you can serve it in the root path use Rack::D3js # You can also serve it from a particular path: map "/js" do run Rack::D3js end # Typically, you would then run your real application: #run MyRealApp