/// <summary> /// Renders the Scripts as a series of html script tags /// with the src attributes set to the value of each /// Script string and the type attribute set to /// "text/javascript" /// </summary> /// <returns></returns> public MvcHtmlString GetScriptTags() { StringBuilder result = new StringBuilder(); Scripts.Each(script => { Tag scr = new Tag("script").Attr("src", script).Attr("type", "text/javascript"); result.Append(scr.ToHtmlString(TagRenderMode.Normal)); }); return(MvcHtmlString.Create(result.ToString())); }