Module Sprockets::Server
In: lib/sprockets/server.rb

`Server` is a concern mixed into `Environment` and `Index` that provides a Rack compatible `call` interface and url generation helpers.

Methods

call  

Public Instance methods

`call` implements the Rack 1.x specification which accepts an `env` Hash and returns a three item tuple with the status code, headers, and body.

Mapping your environment at a url prefix will serve all assets in the path.

    map "/assets" do
      run Sprockets::Environment.new
    end

A request for `"/assets/foo/bar.js"` will search your environment for `"foo/bar.js"`.

[Validate]