Is there any way to split an Ember.js app across a few files?

ember.js

Solution

The standard way to do this is now to use ember-cli. Find more information at http://www.ember-cli.com/

Problem

I've just written my app.js file and everything is nicely working but the whole file is currently 450 lines long and will be getting bigger. Is there any best practice about splitting out state manager code or view code into different files (like states.js or views.js) so that everything is a little bit cleaner? Also on that note... is there a preferred way to split out handlebars templates out into different files? I've currently just got them all defined in one html file which is starting to get a tiny bit unwieldy too.

Original source

Related problems