Skip to content

Instantly share code, notes, and snippets.

@bmizerany
Forked from jinzhu/gist:98403
Created April 20, 2009 06:41
Show Gist options
  • Save bmizerany/98404 to your computer and use it in GitHub Desktop.
Save bmizerany/98404 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
require 'rack/contrib'
use Rack::Callbacks
def before
content_type 'text/plain',:charset => 'utf-8'
end
def after
"after"
end
get "/" do
"hello"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment