Help with precompile handlebar templates

I made available a demo example which precompiles templates based on rake pipeline or broccoli.

In this example, the plugin precompiles either “inline” view (Ember.Select) in the EmberJS code or file templates. The steps are:

  1. Obtain the ember-template-compiler, in this case, it is autogenerated based on EmberJS source at the broccoli file or Assetfile.

  2. Precompile the template data using ember-template-compiler function and add the result to the Ember.TEMPLATES variable.

Filter.prototype._precompileTemplate = function (templateName, data) {
  var precompiledData = this.module.precompileEmberHandlebars(data);
  return "\nEmber.TEMPLATES['"+templateName+"'] = Ember.Handlebars.template("+precompiledData+");\n"