/// <summary> /// CSSs the widget pack helper. /// </summary> /// <param name="context">The context.</param> /// <param name="plugins">The plugins.</param> /// <param name="fileName">Name of the file.</param> /// <param name="htmlAttributes">The HTML attributes.</param> /// <returns>HTML markup for including css-file specified in plugins.</returns> public static String CssPluginPackHelper(HttpContext context, IEnumerable <ICorePlugin> plugins, String fileName, RouteValueDictionary htmlAttributes) { if (String.IsNullOrEmpty(fileName) || plugins == null || !plugins.Any()) { return(String.Empty); } var cssServerPath = context.Server.MapPath(PluginCssPath); var file = Math.Abs(fileName.GetHashCode()) + CssExtension; return(AssetsHelper.BuildPluginsCssPack(plugins, context.Request.PhysicalApplicationPath, cssServerPath, file)); }