View Components for Sinatra.
Switch branches/tags
Nothing to show
Pull request Compare This branch is even with apotonick:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
README.rdoc
Rakefile
cells-sinatra.gemspec

README.rdoc

Sinatra Cells

View Components for Sinatra

Introduction

Cells are object-oriented view components for your MVC-apps. They provide a decent way for encapsulating logic and rendering - thus helping in creating reusable widgets.

For a detailed discussion on cells see github.com/apotonick/cells

Usage

Rendering cells in your Sinatra app is easy.

require 'cells-sinatra'

MyApp < Sinatra::Base
  helpers Cells::Sinatra

  get "/" do
    @top_posts = render_cell(:post, :top10)

    # ... do more
  end

License

Copyright © 2010, Nick Sutterer

Released under the MIT License.