I love how in ASP.NET the ScriptManager has a composite section which allows one to specify multiple javascript files and it does the legwork of merging them all into one file at runtime.
I.E.
//input scriptB.js, scriptB.js
ScriptManager.CompositeScript.Scripts.Add("~/scriptA.js")//psuedo code
ScriptManager.CompositeScript.Scripts.Add("~/scriptB.js")//psuedo code
//output
scriptC.js
Is it possible to add javascript source directly to the scriptmanager, E.G.:
ScriptManager.CompositeScript.Scripts.Add("alert('hello');")//psuedo code