Skip to content

Instantly share code, notes, and snippets.

@chad
Created October 20, 2009 15:21
Show Gist options
  • Save chad/214328 to your computer and use it in GitHub Desktop.
Save chad/214328 to your computer and use it in GitHub Desktop.
Bennett.get "/blog" do
"Hello World"
end
Bennett.get "/home" do
"<html><body><h1>Welcome to my home page!</h1>
Look at my <a href='/blog'>Blog</a>.
</body></html>"
end
server = WEBrick::HTTPServer.new(:Port => 8081)
Bennett.register_with(server)
server.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment