Skip to content

censoredp/flame

 
 

Repository files navigation

Flame

Flame is a small Ruby web framework, built on Rack, inspired by Gin (which follows class-controllers style), designed as a replacement Sintra, or maybe even Rails.

Status

Flame is ready to use in production, but if you find flaws - please let me know.

Gem Version Build Status codecov Code Climate Dependency Status

Installation

Using the built-in gem:

$ gem install flame

or with Bundler:

# Gemfile
gem 'flame'

Usage

# index_controller.rb

class IndexController < Flame::Controller
  def index
    view :index # or just `view`, Symbol as method-name by default
  end

  def hello_world
    "Hello World!"
  end

  def goodbye
    "Goodbye World!"
  end
end

# app.rb

class App < Flame::Application
  mount IndexController do
    get '/hello', :hello_world
    defaults
  end
end

# config.ru

require_relative './index_contoller'

require_relative './app'

run App.new # or `run App`

More at Wiki and in example/ directory.

Benchmark

The last benchmark can be viewed here.

TODO

  • Create a command-line utility (for the generation of the project)
  • ...

About

Ruby web-framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 94.3%
  • HTML 5.7%