private static HtmlMicrodataFormatter CreateHtmlFormatter() { var formatter = new KlondikeHtmlMicrodataFormatter(); formatter.SupportedMediaTypes.Add(new MediaTypeWithQualityHeaderValue("application/xml")); formatter.SupportedMediaTypes.Add(new MediaTypeWithQualityHeaderValue("text/xml")); formatter.Settings.Indent = true; formatter.Title = "Klondike API"; formatter.AddHeadContent( new XElement("script", new XAttribute("src", VirtualPathUtility.ToAbsolute("~/js/formtemplate.min.js")), new XText(""))); return formatter; }
private static HtmlMicrodataFormatter CreateHtmlFormatter() { var formatter = new KlondikeHtmlMicrodataFormatter(); formatter.SupportedMediaTypes.Add(new MediaTypeWithQualityHeaderValue("application/xml")); formatter.SupportedMediaTypes.Add(new MediaTypeWithQualityHeaderValue("text/xml")); formatter.Settings.Indent = true; formatter.Title = "Klondike API"; formatter.AddHeadContent( new XElement("script", new XAttribute("src", VirtualPathUtility.ToAbsolute("~/js/formtemplate.min.js")), new XText(""))); return(formatter); }