Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Helpers for serving an Ember.js app from Sinatra.
Ruby
tree: 99a8e6fc5c

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/sinatra
.gitignore
README.md
sinatra-ember.gemspec

README.md

Sinatra Ember

Helpers for serving an Ember.js app from Sinatra.

  • Pre-compile handlebars templates from separate view files rather than littering them throughout your html.

Installation

You can install Sinatra Ember as a Ruby gem. You can install it via gem install.

$ gem install sinatra-ember

Bundler users

If you use Bundler, add it to your Gemfile.

gem 'sinatra-ember', :require => 'sinatra/ember'

Setup

Install the plugin and add some options.

require 'sinatra/ember'

class App < Sinatra::Base
  register Sinatra::Ember
  serve_templates '/js/templates.js'
end

Sinatra AssetPack

If you're using the sinatra-assetpack gem, add your served templates to a package.

Something went wrong with that request. Please try again.