I'm trying to output Javascript from a C# ASP.NET MVC 2 website.
Basically, I'm creating a widget that people can add their website (by just adding a script tag which gets its code from an MVC action on my website.)
The reason for this is I want the users to be able to configure the output of the script via my website.
(colours of injected DOM elements, position of the widget on screen [Top left, Bottom right etc])
I've looked at script# but it looks a bit overkill. I've started using StringBuilders and outputing Javascript but its very messy and I don't think will be maintainable.
Any ideas?
Many thanks
Sam