Skip to content

Repository files navigation

Helmet

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.

Example

Create hello.rb:

require'helmet'classHello < Helmet::APIhelpersdodefsay_helloname"Hello #{name}!!!"endendget'/:name'dosay_helloparams[:name]endend

Run it from command line:

ruby hello.rb

For more information, see /examples directory.

Instalation

Install from rubygem repository:

gem install helmet

Install from source:

rake gem 

License

Helmet is released under MIT license. Please, take a look at LICENSE file.

About

Simple Ruby non-blocking web framework for Goliath web server.

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages