Skip to content

Instantly share code, notes, and snippets.

@lenary
Forked from vangberg/blog.rb
Created May 19, 2009 20:07
Show Gist options
  • Save lenary/114352 to your computer and use it in GitHub Desktop.
Save lenary/114352 to your computer and use it in GitHub Desktop.
require 'sinatra'
class Blog < Sinatra::Default
get '/' do
..
end
end
if __FILE__ == $0
Blog.run!
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
if __FILE__ == $0
News.run!
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment