public static MvcHtmlString Css(this Controller controller, IEnumerable<string> keys, SquishItForce force = SquishItForce.None) { var sb = new StringBuilder(); foreach (var key in keys) sb.Append(controller.Css(key, force)); return MvcHtmlString.Create(sb.ToString()); }
public static MvcHtmlString JavaScript(this HtmlHelper helper, IEnumerable<string> keys, SquishItForce force = SquishItForce.None) { var sb = new StringBuilder(); foreach (var key in keys) sb.Append(helper.JavaScript(key, force)); return MvcHtmlString.Create(sb.ToString()); }
public static MvcHtmlString Css(this Controller controller, string key, SquishItForce force = SquishItForce.None) { return MvcHtmlString.Create(HelperExtensions.Css(controller.ControllerContext.HttpContext.Request.Browser.IsMobileDevice, key, force)); }
public static MvcHtmlString JavaScript(this HtmlHelper helper, string key, SquishItForce force = SquishItForce.None) { return MvcHtmlString.Create(HelperExtensions.JavaScript(helper.ViewContext.HttpContext.Request.Browser.IsMobileDevice, key, force)); }