C# Class Framework.Mvc.Helpers.AssetsHelper

Provides helper functionality for resources packaging.
Afficher le fichier Open project: coreframework/Core-Framework

Méthodes publiques

Свойство Type Description
DefaultConfigPath String

Méthodes publiques

Méthode Description
BuildCssPack ( Framework.Core.Configuration.Environment environment, String packageName, String cssPath ) : String

Builds the css package file specified in .

If package file already exists it will be rebuilt according with files access time.

BuildCssPack ( Framework.Core.Configuration.Environment environment, String packageName, String cssPath, String configPath ) : String

Builds the css package file specified in configPath.

If package file already exists it will be rebuilt according with files access time.

BuildJavascriptPack ( Framework.Core.Configuration.Environment environment, String packageName, String javascriptPath ) : String

Builds the javascript package file specified in .

If package file already exists it will be rebuilt according with files access time.

BuildJavascriptPack ( Framework.Core.Configuration.Environment environment, String packageName, String javascriptPath, String configPath ) : String

Builds the javascript package file specified in configPath.

If package file already exists it will be rebuilt according with files access time.

BuildPluginCssPack ( ICorePlugin corePlugin, String applicationServerPath ) : String

Builds the plugin CSS pack.

BuildPluginsCssPack ( IEnumerable corePlugins, String applicationServerPath, String cssServerPath, String fileName ) : String

Builds the plugins CSS pack.

GetAssetsConfig ( Framework.Core.Configuration.Environment environment ) : dynamic

Reads assets config from .

If environment equals to Environment.Development configuration will be read on each call; otherwise configuration will be read only on first call.

GetAssetsConfig ( Framework.Core.Configuration.Environment environment, String configPath ) : dynamic

Reads assets config from configPath.

If environment equals to Environment.Development configuration will be read on each call; otherwise configuration will be read only on first call.

GetCssPackFiles ( Framework.Core.Configuration.Environment environment, String packageName ) : IEnumerable

Gets list of files included in css package specified in .

GetCssPackFiles ( Framework.Core.Configuration.Environment environment, String packageName, String configPath ) : IEnumerable

Gets list of files included in css package specified in configPath.

GetJavascriptPackFiles ( Framework.Core.Configuration.Environment environment, String packageName ) : IEnumerable

Gets list of files included in javascript package specified in .

GetJavascriptPackFiles ( Framework.Core.Configuration.Environment environment, String packageName, String configPath ) : IEnumerable

Gets list of files included in javascript package specified in configPath.

GetPluginAssetsConfig ( String configPath ) : dynamic

Reads plugin assets config from configPath.

GetPluginCssPackFiles ( String packageName, String configPath ) : IEnumerable

Gets list of files included in plugin css package specified in configPath.

GetPluginInnerJsPath ( ICorePlugin corePlugin ) : String

Gets the plugin inner js path.

GetPluginInnerJsVirtualPath ( ICorePlugin corePlugin, String applicationVirtualPath, String applicationServerPath ) : String

Gets the plugin inner js path.

GetPluginJsPackFiles ( String packageName, String configPath, String scriptType ) : IEnumerable

Gets list of files included in plugin js package specified in configPath.

Private Methods

Méthode Description
GetMaxLastModifyDate ( String baseDirectory, IEnumerable files ) : System.DateTime
MakeVirtualCssPath ( ICorePlugin coreWidget, String serverPath ) : String

Makes the virtual CSS path.

ReplaceCssUrls ( String cssContent, String imagePluginPath ) : String

Replaces the CSS urls.

Method Details

BuildCssPack() public static méthode

Builds the css package file specified in .
If package file already exists it will be rebuilt according with files access time.
public static BuildCssPack ( Framework.Core.Configuration.Environment environment, String packageName, String cssPath ) : String
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
cssPath String The css directory server path.
Résultat String

BuildCssPack() public static méthode

Builds the css package file specified in configPath.
If package file already exists it will be rebuilt according with files access time.
public static BuildCssPack ( Framework.Core.Configuration.Environment environment, String packageName, String cssPath, String configPath ) : String
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
cssPath String The css directory server path.
configPath String Assets config path.
Résultat String

BuildJavascriptPack() public static méthode

Builds the javascript package file specified in .
If package file already exists it will be rebuilt according with files access time.
public static BuildJavascriptPack ( Framework.Core.Configuration.Environment environment, String packageName, String javascriptPath ) : String
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
javascriptPath String The javascript directory server path.
Résultat String

BuildJavascriptPack() public static méthode

Builds the javascript package file specified in configPath.
If package file already exists it will be rebuilt according with files access time.
public static BuildJavascriptPack ( Framework.Core.Configuration.Environment environment, String packageName, String javascriptPath, String configPath ) : String
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
javascriptPath String The javascript directory server path.
configPath String Assets config path.
Résultat String

BuildPluginCssPack() public static méthode

Builds the plugin CSS pack.
public static BuildPluginCssPack ( ICorePlugin corePlugin, String applicationServerPath ) : String
corePlugin ICorePlugin The core plugin.
applicationServerPath String The application server path.
Résultat String

BuildPluginsCssPack() public static méthode

Builds the plugins CSS pack.
public static BuildPluginsCssPack ( IEnumerable corePlugins, String applicationServerPath, String cssServerPath, String fileName ) : String
corePlugins IEnumerable The core widgets.
applicationServerPath String The application server path.
cssServerPath String The CSS server path.
fileName String Name of the file.
Résultat String

GetAssetsConfig() public static méthode

Reads assets config from .
If environment equals to Environment.Development configuration will be read on each call; otherwise configuration will be read only on first call.
public static GetAssetsConfig ( Framework.Core.Configuration.Environment environment ) : dynamic
environment Framework.Core.Configuration.Environment The environment.
Résultat dynamic

GetAssetsConfig() public static méthode

Reads assets config from configPath.
If environment equals to Environment.Development configuration will be read on each call; otherwise configuration will be read only on first call.
public static GetAssetsConfig ( Framework.Core.Configuration.Environment environment, String configPath ) : dynamic
environment Framework.Core.Configuration.Environment The environment.
configPath String The configuration path.
Résultat dynamic

GetCssPackFiles() public static méthode

Gets list of files included in css package specified in .
public static GetCssPackFiles ( Framework.Core.Configuration.Environment environment, String packageName ) : IEnumerable
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
Résultat IEnumerable

GetCssPackFiles() public static méthode

Gets list of files included in css package specified in configPath.
public static GetCssPackFiles ( Framework.Core.Configuration.Environment environment, String packageName, String configPath ) : IEnumerable
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
configPath String The configuration path.
Résultat IEnumerable

GetJavascriptPackFiles() public static méthode

Gets list of files included in javascript package specified in .
public static GetJavascriptPackFiles ( Framework.Core.Configuration.Environment environment, String packageName ) : IEnumerable
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
Résultat IEnumerable

GetJavascriptPackFiles() public static méthode

Gets list of files included in javascript package specified in configPath.
public static GetJavascriptPackFiles ( Framework.Core.Configuration.Environment environment, String packageName, String configPath ) : IEnumerable
environment Framework.Core.Configuration.Environment The environment.
packageName String Name of the package.
configPath String The configuration path.
Résultat IEnumerable

GetPluginAssetsConfig() public static méthode

Reads plugin assets config from configPath.
public static GetPluginAssetsConfig ( String configPath ) : dynamic
configPath String The configuration path.
Résultat dynamic

GetPluginCssPackFiles() public static méthode

Gets list of files included in plugin css package specified in configPath.
public static GetPluginCssPackFiles ( String packageName, String configPath ) : IEnumerable
packageName String Name of the package.
configPath String The configuration path.
Résultat IEnumerable

GetPluginInnerJsPath() public static méthode

Gets the plugin inner js path.
public static GetPluginInnerJsPath ( ICorePlugin corePlugin ) : String
corePlugin ICorePlugin The core plugin.
Résultat String

GetPluginInnerJsVirtualPath() public static méthode

Gets the plugin inner js path.
public static GetPluginInnerJsVirtualPath ( ICorePlugin corePlugin, String applicationVirtualPath, String applicationServerPath ) : String
corePlugin ICorePlugin The core plugin.
applicationVirtualPath String The application virtual path.
applicationServerPath String The application server path.
Résultat String

GetPluginJsPackFiles() public static méthode

Gets list of files included in plugin js package specified in configPath.
public static GetPluginJsPackFiles ( String packageName, String configPath, String scriptType ) : IEnumerable
packageName String Name of the package.
configPath String The configuration path.
scriptType String The type of script (internal/external).
Résultat IEnumerable

Property Details

DefaultConfigPath public_oe static_oe property

Default assets configuration application relative path.
public static String DefaultConfigPath
Résultat String