Copied index.html, stylsheets and app.js files from the starter kit into
appropriate locations.
welcome/index.html.erb was overwritten by index.html.
You can download the starter kit at http://emberjs.com/
The stylesheets will be automatically picked up by rails because of the require_tree directive in application.css
The app.js won't be picked up automatically because the require_tree directive in application.js is masked (see my comment in application.js)
Making index.html.erb work in sync with layouts/application.html.erb
layouts/application.html.erb takes care of outer tags and scripts/stylesheets inclusion
renamed our app as "App" (following the starter kit convention)
included app.js into application.js
Removed duplicate Ember.Application.create call from app.js
Renamed app.js (from the starter-kit) as a coffee script
The javascript in app.js.coffee needs to be enclosed in backticks to work within a .js.coffee file.
Reorganized js/coffee code where it belongs
Moved emblem_...js.coffee file's functionality to appl.js.coffee and deleted the original file.
The routing code from app.js.coffee is now in router.js.coffee
Converted js code in router.js.coffee to coffee
index.html.erb: Converted handlebar templates to emblem templates
Temporarily included emblem.js manually.
Once we split the emblem templates into partials, we will not need emblem.js since we will be compiling emblem code on the server side using emblem-rails.
Note: emblem.js was copiled from source available at https://github.com/machty/emblem.js/commit/8265772c1d738205499415f5015fc4c137929c0a
You need npm (node package manager) and grunt-cli to build it.
See:
https://github.com/machty/emblem.js#building-emblemjs
https://npmjs.org/
https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
http://gruntjs.com/getting-started
Emblem templates moved from the index.html.erb to .emblem files
application and index are default template names for the
ApplicationRoute and IndexRoute. So application.emblem and index.emblem
get compiled on the server side into handlebar templates named
'application' and 'index' respectively, and get automatically
picked up by Emberjs.
Now that all the emblem code is getting compiled on the server side
by emblem-rails, we don't need the emblem.js within vendor/...
Added README.md