module.exports = {
  compile: {
    options: {
      templateName: function(filename) {
        return filename.replace(/app\/templates\//,'').replace(/\.hbs/,'');
      }
    },
    files: {
      "tmp/public/assets/templates.js": "app/templates/*.hbs"
    }
  }
};

module.exports = {
  compile: {
    options: {
      templateName: function(filename) {
        return filename.replace(/app\/templates\//,'').replace(/\.(hbs|hjs|handlebars)/,'');
      }
    },
    files: {
      "tmp/public/assets/templates.js": "app/templates/*.hbs"
    }
  }
};

Support .handlebars & .hjs exts for templates
Support .handlebars & .hjs exts for templates

See
https://github.com/emberjs/ember-rails/blob/master/lib/ember/handlebars/template.rb#L44
