One feature I really like about ASP.NET is the ScriptManager's ability to have a composite section where you can specify multiple javascript files and it will automatically merge them into one file at runtime.
For example:
//input scriptB.js, scriptB.js
ScriptManager.CompositeScript.Scripts.Add("~/scriptA.js")//psuedo code
ScriptManager.CompositeScript.Scripts.Add("~/scriptB.js")//psuedo code
//output
scriptC.js
I wonder if it's possible to add javascript source directly to the ScriptManager, like this:
ScriptManager.CompositeScript.Scripts.Add("alert('hello');")//psuedo code