Is there any MVC equivalent to Page.ClientScripts.RegisterClientScriptInclude and Page.ClientScripts.RegisterClientScriptBlock?
I am looking to create Partial Views which may very well be referenced multiple times from the same main view.
These views might very well have their own script requirements but it seems wasteful to write includes on every potential main view or master page.
Also I feel that it would be sensibel to have the Partial view call some javascript once to initialise all of it's sibling views.
For example...
$('input[alt=date]').datepicker();
...is something which I should really only have to call once, but only if a partial view has placed such a hmtl control in the view.
So any ideas how I can achieve the old Page.ClientScripts.RegisterClientScriptInclude and Page.ClientScripts.RegisterClientScriptBlock functionality within the ASP.Net MVC Framework