HubSpot/Singularity — pull request #184 by Eseb (2014-07-28 17:28:45+00:00)
Title: UI Controllers

Close enough to being done for review, @timmfin & @tpetr

* Introducing [`SimpleSubview`](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/views/simpleSubview.coffee) -- `ExpandableTableSubview`'s little brother. You feed it a template and a model/collection and plop it down into a parent view and it renders itself as its data source changes.
* [The router](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/lib/router.coffee) now fires up controllers. Examples:
* [Dashboard](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/controllers/Dashboard.coffee) and [its view](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/views/dashboard.coffee). Very simple, only one data source.
* [Slaves](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/controllers/Slaves.coffee) and [its view](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/views/slaves.coffee). Multiple data sources, uses subviews.
* [TaskDetail](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/controllers/TaskDetail.coffee) and [its view](https://github.com/HubSpot/Singularity/blob/ui-controllers/SingularityUI/app/views/task.coffee). Multiple data sources, buttload of subviews.