Skip to content

Instantly share code, notes, and snippets.

@danhyun
Last active August 29, 2015 14:27
Show Gist options
  • Save danhyun/17f9f15bae6b7b8511e9 to your computer and use it in GitHub Desktop.
Save danhyun/17f9f15bae6b7b8511e9 to your computer and use it in GitHub Desktop.
sinatra vs ratpack
# $ gem install sinatra
require 'sinatra'
get '/hi' do
"Hello World!"
end
@Grab("io.ratpack:ratpack-groovy:0.9.18")
import static ratpack.groovy.Groovy.ratpack
ratpack {
handlers {
get('hi') {
response.send "Hello World!"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment