C# Class WebMarkupMin.Yui.YuiCssMinifier

Minifier, which produces minifiction of CSS-code by using YUI CSS Compressor for .NET
Inheritance: YuiMinifierBase, ICssMinifier
显示文件 Open project: Taritsyn/WebMarkupMin Class Usage Examples

Public Methods

Method Description
Minify ( string content, bool isInlineCode ) : CodeMinificationResult

Produces a code minifiction of CSS content by using the YUI CSS Compressor for .NET

Minify ( string content, bool isInlineCode, Encoding encoding ) : CodeMinificationResult

Produces a code minifiction of CSS content by using the YUI CSS Compressor for .NET

YuiCssMinifier ( ) : System

Constructs an instance of the YUI CSS Minifier

YuiCssMinifier ( YuiCssMinificationSettings settings ) : System

Constructs an instance of the YUI CSS Minifier

Private Methods

Method Description
ApplyCssSettingsToOriginalCssMinifier ( Yahoo.Yui.Compressor.CssCompressor originalMinifier, YuiCssMinificationSettings settings ) : void

Applies a CSS settings to original CSS minifier

CreateOriginalCssMinifierInstance ( YuiCssMinificationSettings settings, bool isInlineCode ) : Yahoo.Yui.Compressor.CssCompressor

Creates a instance of original CSS minifier

Method Details

Minify() public method

Produces a code minifiction of CSS content by using the YUI CSS Compressor for .NET
public Minify ( string content, bool isInlineCode ) : CodeMinificationResult
content string CSS content
isInlineCode bool Flag whether the content is inline code
return WebMarkupMin.Core.CodeMinificationResult

Minify() public method

Produces a code minifiction of CSS content by using the YUI CSS Compressor for .NET
public Minify ( string content, bool isInlineCode, Encoding encoding ) : CodeMinificationResult
content string CSS content
isInlineCode bool Flag whether the content is inline code
encoding System.Text.Encoding Text encoding
return WebMarkupMin.Core.CodeMinificationResult

YuiCssMinifier() public method

Constructs an instance of the YUI CSS Minifier
public YuiCssMinifier ( ) : System
return System

YuiCssMinifier() public method

Constructs an instance of the YUI CSS Minifier
public YuiCssMinifier ( YuiCssMinificationSettings settings ) : System
settings YuiCssMinificationSettings Settings of YUI CSS Minifier
return System