title: Render scripts for use in Partial View?
body: <p>I've seen numerous sources stating that it's incorrect / bad practice to put scripts in Partial Views, but this raises a huge question...</p>
  
  <p>How are you supposed to run scripts that interact with Partial Views? I've tried using <code>@section scripts { }</code> or something like that, but it doesn't work. At all. The section contains the scripts just fine, but they don't get rendered when the Partial is loaded into the full View.</p>
  
  <p>In addition, I can't render the scripts my Partial View needs on my full View because the scripts pull values from the <code>Model</code>, which is only rendered on the Partial View, since it's the piece of the puzzle that actually works with data.</p>
  
  <p>I hope that doesn't sound too complicated... How can I effectively, efficiently, and correctly render scripts for use with my Partial View's elements <em>and</em> <code>Model</code>?</p>