Skip to content

Instantly share code, notes, and snippets.

@jinzhu
Created April 20, 2009 06:40
Show Gist options
  • Save jinzhu/98403 to your computer and use it in GitHub Desktop.
Save jinzhu/98403 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