Click or drag to resize
CssStylesheetInfoProviderRegisterCssPreprocessor Method
Use this method to register custom CSS dynamic language and its parser.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 9.0.0
Syntax
C#
public static void RegisterCssPreprocessor(
	string name,
	string extension,
	string displayName,
	Func<CssEventArgs, string> callback,
	Action<Page> registerClientCompilationScripts = null,
	Func<string, string> getErrorDescription = null
)

Parameters

name
Type: SystemString
Dynamic language name
extension
Type: SystemString
File extension associated with the dynamic language
displayName
Type: SystemString
Dynamic language name used for displaying in the user interface
callback
Type: SystemFuncCssEventArgs, String
Callback function which the source CSS code is passed to process
registerClientCompilationScripts (Optional)
Type: SystemActionPage
Method that ensures registration of client scripts required for client-side compilation
getErrorDescription (Optional)
Type: SystemFuncString, String
Method used to get formatted error message
See Also