What is it?
Ember.js is a great Client Side MVC framework.
This code is built based on the guide located at Ember Application Structure.
The code is as minimal as possible in order to help the ease of setup and isolation. In order to run the examples you need Coffeescript on your machine. Once installed you can run
coffee -cw js from within the root of the project. This will compile the coffee files to JS each time they change.
At that point you can open an example file in any browser which supports Ember to play around with the code.
Each example is as self contained as possible even though it requires duplicating code. All the html files have a corresponding coffee/js file.
Remember to run
coffee -c js/*.coffee before attempting to use the examples.
- Basic-1 [html | js] The most basic use of the router with the ability to go from an index route (state) to a list of posts and finally to an individual post.
- Basic-2 [html | js] A slightly more sophisticated version with the ability to show Trackbacks and Comments.
- Basic-3 [html | js] Includes ember-data for the models.
- Basic-4 [html | js] Includes some form editing and submissions.
If you need help or have improvements please don't hesitate to contact me (or pull request). I am as new to Ember as most people so I don't pretend to know it all.