Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

DEPRECATED

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 README.md
Octocat-spinner-32 sinatra-web-inspector.gemspec
README.md

Sinatra::WebInspector

The WebInspector allows you to inspect a running Sinatra app. Just browse http://localhost:4567/__inspect__

When used with BigBand, it will – per default – only be activated in development mode.

BigBand

Sinatra::WebInspector is part of the BigBand stack. Check it out if you are looking for other fancy Sinatra extensions.

Installation

Note: CSS has not yet been imported from BigBand, so you won't really enjoy this.

gem install sinatra-web-inspector --prerelease

Usage

Classic style:

require "sinatra"
configure(:development) { require "sinatra/webinspector" }

Modular style:

require "sinatra/base"
require "sinatra/webinspector"
class Foo < Sintra::Base
  configure(:development) { register Sintra::WebInspector }
end
Something went wrong with that request. Please try again.