Beispiel #1
0
        public static string ImgFor(this HtmlHelper htmlHelper, string tag, string alt, object htmlAttributes)
        {
            var file = AssetCache.GetFileFor(tag).FirstOrDefault();

            if (string.IsNullOrEmpty(file))
            {
                return(null);
            }
            return(StaticResourceExtensions.Img(htmlHelper, file, alt, htmlAttributes));
        }
Beispiel #2
0
 public static string Img(this HtmlHelper htmlHelper, string file, string alt)
 {
     return(StaticResourceExtensions.Img(htmlHelper, file, null, null));
 }