Sinatra is a single-file application DSL built on top of Rack lightweight intutive and Classy. If a layout exists, it will auto-render it too (unless :layout => false is specified) You can also punt to the next matching rule by using the pass directive pass unless params[:who] == 'frank' You can also halt execution of a method using the halt directive halt 401, 'gtfo
Sinatra is a single-file application DSL built on top of Rack lightweight intutive and Classy. If a layout exists, it will auto-render it too (unless :layout => false is specified) You can a…