示例#1
0
        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 }));
        }
示例#2
0
        public static IHtmlString Image(string relativePath, string alt)
        {
            var assetUri  = AssetManager.GetImageUri(relativePath);
            var assetPath = UrlManip.ToProtocolRelativeString(assetUri);

            return(Markup.Image(assetPath, alt));
        }
示例#3
0
        public static IHtmlString JavaScript(string relativePath)
        {
            var assetUri  = AssetManager.GetScriptUri(relativePath);
            var assetPath = UrlManip.ToProtocolRelativeString(assetUri);

            return(Markup.Script(assetPath));
        }
示例#4
0
        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 }));
        }