Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Helpers for serving an Ember.js app from Sinatra.

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.