title: Ember.js: How can I decouple my views from my controllers?
body: <p>I'm trying to restructure tightly coupled portions of an ember.js app, particularly views and templates to controllers.</p>
  
  <p>All the examples I've seen bind views directly to controllers in the view's class definition, or by pass the (global) controller path to the view in the template itself.</p>
  
  <p>The TargetActionSupport mixin (DelegateSupport in sproutcore, I think) seems like a good candidate, but would still require the target (controller) and action to be set in the template itself.</p>
  
  <p>Ideally, I would like to instantiate my views in my controller (somehow), set targets and actions, but <em>also</em> set presentational variables in my templates (ex: static classes, id), but I'm not sure how to accomplish something this, or whether it's the right approach.</p>