-
Notifications
You must be signed in to change notification settings - Fork 49
Description
I have this addon installed, and I change generated CoffeeScript code to have an indent level of 4. When generating a route nested under another route with the command ember g route parent/child, Ember CLI appears to look for the parent route with an indent level of 2, and when it does not find it, it adds the child route unnested with an indent level of 2. The code looks something like:
Router.map ->
@route 'parent'
@route 'parent/child'When using plain JavaScript and issuing the same generate command (in a test project), I get this:
Router.map(function() {
this.route('parent', function() {
this.route('child');
});
});The result of the unexpected behavior in CoffeeScript is having to modify more than just the indentation of generated code. Is there any way to remedy this? I could take a look at myself if someone guides me to the relevant file(s).
A more general question: does this addon support indentation levels other than 2 for generators?