Ember & Rails newb here with a serious question about both.
I'm building a project that leverages the ember-rails setup as exemplified here: https://github.com/dgeb/ember_data_example
However, to make things even more complicated, the project is intended to be packaged as a gem, for inclusion in a larger app. To that end I've created a mountable engine, containing a dummy project for testing.
Problem is, ember-rails, and and specifically handlebars cannot find the templates in their intended location. This prevents a lot of the functionality from working properly.
In terms of moving the handlebars template directory, I have found a solution here: How can I specify an alternative directory for my HandlebarsJS templates with the ember-rails gem?
In summary it states we can specify the path to the templates in application.rb by setting the value of config.handlebars.templates_root
However, I think this will cause a conflict should another ember-rails engine need to be loaded into a larger app.. and that one will need its own configuration setting.
Does anyone have experience with these setups, and is there any way to make a namespaced ember app play nice within a larger context?
By the way, this is rails 4 running the latest ember-rails on ruby 1.9.2.