emberjs/ember-rails — pull request #104 by Goltergaul (2012-11-26 10:15:08+00:00)
Title: Supporting multiple template roots

Hi we needed to have a extra templates folder for a mobile version so i patched the gem to support stripping multiple root folders from the templates_path.

we now can have app/assets/javascripts/templates and
we now can have app/assets/javascripts/templates_mobile
where both templates and templates_mobile get stripped out of the path when compiling the templates.

in our application.rb we use
config.handlebars.templates_root = ["templates", "templates_mobile"]
to configure that.

The old config
config.handlebars.templates_root = "templates"
is still supported