Created
June 19, 2010 19:15
-
-
Save paul/445190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'bundler' | |
Bundler.setup | |
require 'sinatra/base' | |
module ThingsController | |
extend Sinatra::Delegator | |
get '/' do | |
'Hello!' | |
end | |
end | |
module Keister | |
def self.app | |
@app || Rack::Builder.new do | |
run Keister::App | |
end | |
end | |
class App < Sinatra::Application | |
extend ThingsController | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment