This was modified directly from a new Sails v0.10.5 application.
The following modifications have been made:
assetsjs- Added
application.js- as the Ember application entry point - dependencies
- Added
ember.js,handlebars.js,jquery.jssymlinks (linked to bower_components)
- Added
- Added
templates- Added
application.hbsas the initial Handlebars template
- Added
tasksconfig- Removed
jst.js - Added
handlebars.js- Uses
grunt-ember-templatesto build templates - By default, uses
assets/templatesas thetemplateBasePathoption - Output file is
.tmp/public/template.js
- Uses
- Modified
sails-linker.js- Modified
devTplsection to reflect output file change to.tmp/public/template.js
- Modified
- Removed
register- Modified
compileAssets.jsandsyncAssets.jsto point to new Handlebars grunt task instead of JST
- Modified
- Modified
pipeline.jsto include jQuery and Handlebars dependencies explicitly before the Ember dependency - Changed extension on
templateFilesToInjectto reflect the change to Handlebars
views- Modified
layout.ejs- moved template section below client-side JS section so that dependent libraries are loaded before the templates are loaded.
- Modified
- Added
bower.json- Default dependencies are Ember, Handlebars, and jQuery
- Modified
package.json- addedgrunt-ember-templatesdependency