diff --git a/README.md b/README.md index e8f71198..c9d7b566 100644 --- a/README.md +++ b/README.md @@ -2452,7 +2452,20 @@ available via the top-level DSL. Most top-level apps can be converted to `Sinatra::Base` is a blank slate. Most options are disabled by default, including the built-in server. See [Configuring Settings](http://sinatra.github.com/configuration.html) -for details on available options and their behavior. +for details on available options and their behavior. If you want +behavior more similar to when you define your app at the top level (also +know as Classic style), you +can subclass `Sinatra::Application`. + +``` ruby +require 'sinatra/base' + +class MyApp < Sinatra::Application + get '/' do + 'Hello world!' + end +end +``` ### Modular vs. Classic Style @@ -2472,42 +2485,49 @@ different default settings: