Sha256: b69cc0f9413cc97b4e2aaf946d74a107f49012fb02317293ff07159d69fd2108

Contents?: true

Size: 1014 Bytes

Versions: 2

Compression:

Stored size: 1014 Bytes

Contents

Helmet
======

Simple web framework for Goliath web server.

Helmet is **very** inspired on Sinatra framework  (https://github.com/bmizerany/sinatra) without losing the Goliath API design.
The framework tries some functionalities that Goliath doesn't provide out of the box, like:

  - Session management
  - Simplified template support
  - Simple notation for HTTP verbs and filters

This is the very first version, all the APIand code will be reviewed.

Example
=======

```ruby
require 'helmet'

class Misc < Helmet::API
  
  use Rack::Static,
    :root => public_folder, # Default: ./public
    :urls => ['/css']

  get '/' do 
    erb(:index, {:layout => :layout}, {:data => session[:data]})
  end
  
  post '/session' do |env|
    erb(:index, {:layout => :layout}, {:data => session[:data]})
  end
  
end
```
See examples directory

License
=======
Goliath License, (https://github.com/postrank-labs/goliath/blob/master/LICENSE)
 
Credits
=======

Helmet is copyright Thiago Lewin <thiago_lewin@yahoo.com.br>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
helmet-0.2.1 README.md
helmet-0.2.0 README.md