title: MVC - is there a nice way to bundle controls with their respective javascript?
body: <p>I'm pretty new to MVC and I can't decide on the best way to store cshtml files and their respective javascript code. Some JS code in my project needs to run globally, but most of it is entirely tied to specic views or partial views. </p>
  
  <p>If I put the javascript in the views, I get a mess of inline uncacheable javascript, if I put it in one central file, I lose modularity.</p>
  
  <p>I heard that in MVC4 there are going to be minification features, is there something I can do with MVC3 that will allow me to choose in the Views which javascripts to include and then group them and minify them automatically? (maybe even in groups?)</p>