Skip to content
Neat Backbone.js integration with Sinatra.
Ruby JavaScript
Latest commit 595dc7d Jun 25, 2014 @rstacruz Merge pull request #12 from leoc/add-haml-coffee-engine
Add haml-coffee engine
Failed to load latest commit information.
examples Add example for JstPages. Sep 12, 2011
lib/sinatra Add haml-coffee engine Apr 30, 2014
test Add provisions for testing in multiple Sinatra versions. Apr 17, 2013
.gitignore Ignore gemfile.lock. Apr 17, 2013
Gemfile v0.1.1. Apr 17, 2013 very small typo fix Mar 20, 2013


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!


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

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


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


© 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.

Something went wrong with that request. Please try again.