Skip to content

Instantly share code, notes, and snippets.

@gutenye
Last active December 10, 2015 01:58
Show Gist options
  • Star 31 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gutenye/4364010 to your computer and use it in GitHub Desktop.
Save gutenye/4364010 to your computer and use it in GitHub Desktop.
Write Ember.js App With Middleman

I. Create a Middleman project with middleman-ember-template

$ middleman init hello --template=ember

II. Install ember.js package

$ bower install ember
$ symlink/copy necessary javascript files from 'components/' into 'vendor/javascripts/'

III. Add handlebars support

$ edit Gemfile

  gem "sprockets-handlebars_template", :require => "sprockets/ember_handlebars_template"

IV. Write the app and build it.

$ middleman build
> the static site is now at 'build/' directory

You can find a live example at here

Server side app only need provide APIs, and you can find many projects like rails-api, sinatra, or backend written in Ruby, Python, Go, ...

Other build solutions: ember-rails, rake-pipeline

A list of sites build by ember.js with source code

Resources

@gutenye
Copy link
Author

gutenye commented Feb 3, 2014

Update: As Ember.js evolves, Ember App Kit is a better choice now.

@chrishough
Copy link

There is also this approach middleman-ember

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment