Simple TravisCI Dependency Status

Simple web development framework for Ruby.

Installation

Notes: Simple is very new and still under development. Feel free to create ticket and report about bug or improvement or addition.

put this line in your Gemfile

gem "simple"

or install with gem command line

gem install bundler

Features

Basic Usage

The little snippet of the famous hello world web application.

# config.ru

require 'simple'

class Example < Simple::Base

  # GET /
  get "/" do
    [200, {"Content-Type" => "text/plain"}, ["Hello World"]]
  end

  # GET /hello
  get "/:message" do
    # params[:message]
  end

  # POST /users
  post "/users" do
    # User.create or etc
  end

  # GET /api/v1/users/online.xml
  namespace :api do
    namespace :v1 do
      get "/users/online" do
        # json/xml output
      end
    end
  end

end

run Example

This would create a Rack application.

TODO

  • Before/After Filters
  • Helpers (Form/Link/etc)
  • Render Templates
  • Rails style router (match "/hi" => "controller#action")
  • And much more.

Contribution

  • Fork the project
  • Make your feature addition or bug fix.
  • Add test for it
  • Send me a pull request. Topic branches preferred.

Copyright © 2012 Bryan Goines. See LICENSE for details.