public static IHtmlString Less(string relativePath, string media) { var assetUri = AssetManager.GetScriptUri(relativePath); var assetPath = UrlManip.ToProtocolRelativeString(assetUri); return(Markup.Link(assetPath, LESS_LINK_TYPE, LESS_RELATION, new { media = media })); }
public static IHtmlString Image(string relativePath, string alt) { var assetUri = AssetManager.GetImageUri(relativePath); var assetPath = UrlManip.ToProtocolRelativeString(assetUri); return(Markup.Image(assetPath, alt)); }
public static IHtmlString JavaScript(string relativePath) { var assetUri = AssetManager.GetScriptUri(relativePath); var assetPath = UrlManip.ToProtocolRelativeString(assetUri); return(Markup.Script(assetPath)); }
public static IHtmlString Css(string relativePath, string media) { var assetUri = AssetManager.GetStyleUri(relativePath); var assetPath = UrlManip.ToProtocolRelativeString(assetUri); return(Markup.Link(assetPath, null /* linkType */, CSS_RELATION, new { media = media })); }