C# 클래스 Framework.Mvc.Extensions.AssetsExtensions

Adds methods for resource managing to HtmlHelper.
파일 보기 프로젝트 열기: coreframework/Core-Framework

공개 프로퍼티들

프로퍼티 타입 설명
AssetPackagesConfigPath String
CssPath String
JavascriptPath String
PluginCssPath String

공개 메소드들

메소드 설명
CssHelper ( HttpContext context, String path, RouteValueDictionary htmlAttributes ) : String

CSSs the helper.

CssInclude ( this html, String css ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including specified css-file.

CssInclude ( this html, String css, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including specified css-file.

CssPackInclude ( this html, String packageName ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including css-files specified in assets config (AssetPackagesConfigPath).

CssPackInclude ( this html, String packageName, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including css-files specified in assets config (AssetPackagesConfigPath).

CssPluginPackHelper ( HttpContext context, IEnumerable plugins, String fileName, RouteValueDictionary htmlAttributes ) : String

CSSs the widget pack helper.

CssPluginPackHelper ( System.Web.HttpContextBase context, IEnumerable plugins, String fileName, RouteValueDictionary htmlAttributes ) : String

CSSs the widget pack helper.

JavascriptHelper ( System.Web.HttpContextBase context, String path ) : String

Generates javascript link.

JavascriptInclude ( this html, String javascript ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including specified javascript-file.

JavascriptInclude ( this html, String javascript, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including specified javascript-file.

JavascriptPackInclude ( this html, String packageName ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including javascript-files specified in assets config (AssetPackagesConfigPath).

JavascriptPackInclude ( this html, String packageName, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString

Generates HTML markup for including javascript-files specified in assets config (AssetPackagesConfigPath).

비공개 메소드들

메소드 설명
CssHelper ( System.Web.HttpContextBase context, String css, RouteValueDictionary htmlAttributes ) : String
CssPackHelper ( System.Web.HttpContextBase context, String packageName, RouteValueDictionary htmlAttributes ) : String

Generates HTML markup for including css-files specified in assets config (AssetPackagesConfigPath).

GetEnvironment ( ) : Framework.Core.Configuration.Environment
GetTimeStamp ( System.Web.HttpContextBase context, String path ) : String
JavascriptHelper ( System.Web.HttpContextBase context, String javascript, RouteValueDictionary htmlAttributes ) : String
JavascriptPackHelper ( System.Web.HttpContextBase context, String packageName, RouteValueDictionary htmlAttributes ) : String
ToAbsolutePath ( String path, String directoryPath ) : String

메소드 상세

CssHelper() 공개 정적인 메소드

CSSs the helper.
public static CssHelper ( HttpContext context, String path, RouteValueDictionary htmlAttributes ) : String
context System.Web.HttpContext The context.
path String The Css href path.
htmlAttributes RouteValueDictionary The HTML attributes.
리턴 String

CssInclude() 공개 정적인 메소드

Generates HTML markup for including specified css-file.
public static CssInclude ( this html, String css ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
css String The css file path relative to .
리턴 System.Web.Mvc.MvcHtmlString

CssInclude() 공개 정적인 메소드

Generates HTML markup for including specified css-file.
public static CssInclude ( this html, String css, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
css String The css file path relative to .
htmlAttributes Object The HTML attributes.
리턴 System.Web.Mvc.MvcHtmlString

CssPackInclude() 공개 정적인 메소드

Generates HTML markup for including css-files specified in assets config (AssetPackagesConfigPath).
public static CssPackInclude ( this html, String packageName ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
packageName String Name of the package specified in assets config.
리턴 System.Web.Mvc.MvcHtmlString

CssPackInclude() 공개 정적인 메소드

Generates HTML markup for including css-files specified in assets config (AssetPackagesConfigPath).
public static CssPackInclude ( this html, String packageName, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
packageName String Name of the package specified in assets config.
htmlAttributes Object The HTML attributes.
리턴 System.Web.Mvc.MvcHtmlString

CssPluginPackHelper() 공개 정적인 메소드

CSSs the widget pack helper.
public static CssPluginPackHelper ( HttpContext context, IEnumerable plugins, String fileName, RouteValueDictionary htmlAttributes ) : String
context System.Web.HttpContext The context.
plugins IEnumerable The plugins.
fileName String Name of the file.
htmlAttributes RouteValueDictionary The HTML attributes.
리턴 String

CssPluginPackHelper() 공개 정적인 메소드

CSSs the widget pack helper.
public static CssPluginPackHelper ( System.Web.HttpContextBase context, IEnumerable plugins, String fileName, RouteValueDictionary htmlAttributes ) : String
context System.Web.HttpContextBase The context.
plugins IEnumerable The plugins.
fileName String Name of the file.
htmlAttributes RouteValueDictionary The HTML attributes.
리턴 String

JavascriptHelper() 공개 정적인 메소드

Generates javascript link.
public static JavascriptHelper ( System.Web.HttpContextBase context, String path ) : String
context System.Web.HttpContextBase The context.
path String The javascript file path.
리턴 String

JavascriptInclude() 공개 정적인 메소드

Generates HTML markup for including specified javascript-file.
public static JavascriptInclude ( this html, String javascript ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
javascript String The javascript file path relative to .
리턴 System.Web.Mvc.MvcHtmlString

JavascriptInclude() 공개 정적인 메소드

Generates HTML markup for including specified javascript-file.
public static JavascriptInclude ( this html, String javascript, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
javascript String The javascript file path relative to .
htmlAttributes Object The HTML attributes.
리턴 System.Web.Mvc.MvcHtmlString

JavascriptPackInclude() 공개 정적인 메소드

Generates HTML markup for including javascript-files specified in assets config (AssetPackagesConfigPath).
public static JavascriptPackInclude ( this html, String packageName ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
packageName String Name of the package specified in assets config.
리턴 System.Web.Mvc.MvcHtmlString

JavascriptPackInclude() 공개 정적인 메소드

Generates HTML markup for including javascript-files specified in assets config (AssetPackagesConfigPath).
public static JavascriptPackInclude ( this html, String packageName, Object htmlAttributes ) : System.Web.Mvc.MvcHtmlString
html this The HTML helper instance that this method extends.
packageName String Name of the package specified in assets config.
htmlAttributes Object The HTML attributes.
리턴 System.Web.Mvc.MvcHtmlString

프로퍼티 상세

AssetPackagesConfigPath 공개적으로 정적으로 프로퍼티

Path for asset packager config.
public static String AssetPackagesConfigPath
리턴 String

CssPath 공개적으로 정적으로 프로퍼티

Virtual path for directory with css files (~/Content/Css/).
public static String CssPath
리턴 String

JavascriptPath 공개적으로 정적으로 프로퍼티

Virtual path for directory with javascript files (~/Scripts/).
public static String JavascriptPath
리턴 String

PluginCssPath 공개적으로 정적으로 프로퍼티

Virtual path for directory with css files (~/Content/Css/).
public static String PluginCssPath
리턴 String