00001 using System; 00002 using N2.Web.UI; 00003 using System.Web.Mvc; 00004 00005 namespace N2.Web.Mvc.Html 00006 { 00010 public static class DetailExtensions 00011 { 00012 public static string Detail<TItem>(this HtmlHelper<TItem> helper, string detailName) 00013 where TItem : ContentItem 00014 { 00015 return Convert.ToString(helper.ViewData.Model[detailName]); 00016 } 00017 } 00018 }