Skip to content

Instantly share code, notes, and snippets.

@vangberg
Created March 10, 2009 16:02
Show Gist options
  • Save vangberg/76958 to your computer and use it in GitHub Desktop.
Save vangberg/76958 to your computer and use it in GitHub Desktop.
require 'sinatra'
class Blog < Sinatra::Default
get '/' do
..
end
end
require 'blog'
require 'news'
map '/blog' do
run Blog
end
map '/news' do
run News
end
require 'sinatra'
class News < Sinatra::Default
get '/' do
..
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment