/// <summary> /// Returns the CSS file with all of the url's formatted to be absolute locations /// </summary> /// <param name="fileContents"></param> /// <param name="url"></param> /// <param name="http"></param> /// <returns></returns> public static string ReplaceUrlsWithAbsolutePaths(string fileContents, string url, HttpContextBase http) { var uri = new Uri(url, UriKind.RelativeOrAbsolute); fileContents = CssHelper.ReplaceUrlsWithAbsolutePaths(fileContents, uri.MakeAbsoluteUri(http)); return(fileContents); }
public static string TransformCssFile(string fileContent, Uri cssLocation) { return(CssHelper.ReplaceUrlsWithAbsolutePaths(fileContent, cssLocation)); }