Helmet is a non-blocking (asynchronous) web framework built on top of Goliath Web Server.
The Helmet semantics is inspired on Sinatra framework and brings to Goliath some nice features:
- HTTP Route processing, using the kick-ass http_router gem.
- Simplified template support, using the tilt gem.
- Helpers support.
Create hello.rb:
require'helmet'classHello < Helmet::APIhelpersdodefsay_helloname"Hello #{name}!!!"endendget'/:name'dosay_helloparams[:name]endendRun it from command line:
ruby hello.rb
For more information, see /examples directory.
Install from rubygem repository:
gem install helmet
Install from source:
rake gem Helmet is released under MIT license. Please, take a look at LICENSE file.