Skip to content

tlewin/helmet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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'

class Hello < Helmet::API
  
  helpers do

    def say_hello name
      "Hello #{name}!!!"
    end

  end

  get '/:name' do
    say_hello params[:name]
  end

end

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published