No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Provides Rest API access to your models and serves JST pages.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.1.3
~> 0.13.3
~> 0.6.2
>= 0
>= 3.25.0
~> 1.3.4

Runtime

 Project Readme

Sinatra-backbone

Neat integration of Backbone.js with Sinatra

Do you like Backbone.js? Do you like Sinatra? Did you ever wish you can use them together? Well now you can, with the new Sinatra Backbone!

Usage

This is a Ruby gem.
$ gem install sinatra-backbone --pre

Or do you use Bundler?
gem 'sinatra-backbone', :require => 'sinatra/backbone'

Contents

Sinatra-backbone is comprised of two Sinatra plugins:

  • Sinatra::JstPages – Provides support for JavaScript server templates (JST) for use in Backbone views. See JstPages example for a full example application.

  • Sinatra::RestAPI – Provides restful API for your models for use in Backbone models. See RestAPI example for a full example application.

For usage and API reference, please see http://ricostacruz.com/sinatra-backbone.

Acknowledgements

© 2011, Rico Sta. Cruz. Released under the MIT License.

Sinatra-Backbone is authored and maintained by Rico Sta. Cruz with help from its contributors. It is sponsored by my startup, Sinefunc, Inc.