module Middleman::CoreExtensions::RackMap::ClassMethods

def build(*args, &bk)

an instance of this class as end point.
Creates a Rack::Builder instance with all the middleware set up and
def build(*args, &bk)
  builder = ::Rack::Builder.new
  builder.use ::Sinatra::ShowExceptions       if show_exceptions?
  builder.use ::Rack::CommonLogger   if logging?
  builder.use ::Rack::Head
  middleware.each { |c,a,b| builder.use(c, *a, &b) }
  maps.each { |p,b| builder.map(p, &b) }
  app = self
  builder.map "/" do
    run app.new!(*args, &bk)
  end
  builder
end