Project

helmet

0.01
No commit activity in last 3 years
No release in over 3 years
Simple web framework for Goliath web server.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

>= 0

Runtime

 Project Readme

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.