Sinatra-settings is a project mainly written in Ruby, based on the MIT license.
A Sinatra Extension that shows your app's settings and other debug information
= Sinatra::Settings
A Sinatra Extension that shows your app's settings and other debug information.
Ever wanted an overview of all Sinatra settings (formerly options) in your app?
Well, now you can through this Sinatra Extension which makes that task dead simple, while also adding in some other useful debug information in the output.
With a heavy dose of inspiration taken from Sinatra's Show Exception output page.
== Installation
$ (sudo)? gem install sinatra-settings
== Dependencies
This Gem depends upon the following:
=== Runtime:
=== Development & Tests:
== Getting Started
To view the settings in your app, just require and register the extension in your sub-classed Sinatra app:
require 'sinatra/settings'
class YourApp < Sinatra::Base
register(Sinatra::Settings)
enable :show_settings # turn it on
<snip...>
end
In your "classic" Sinatra app, you just require the extension like this:
require 'rubygems' require 'sinatra' require 'sinatra/settings'