Skip to content

Instantly share code, notes, and snippets.

@paul
Created June 19, 2010 19:15
Show Gist options
  • Save paul/445190 to your computer and use it in GitHub Desktop.
Save paul/445190 to your computer and use it in GitHub Desktop.
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