메소드 | 설명 | |
---|---|---|
GenericHtmlMinifier ( GenericHtmlMinificationSettings settings = null, ICssMinifier cssMinifier = null, IJsMinifier jsMinifier = null, ILogger logger = null ) : System |
Constructs instance of generic HTML minifier
|
|
Minify ( string content ) : |
Minify HTML content
|
|
Minify ( string content, |
Minify HTML content
|
|
Minify ( string content, bool generateStatistics ) : |
Minify HTML content
|
|
Minify ( string content, string fileContext ) : |
Minify HTML content
|
|
Minify ( string content, string fileContext, |
Minify HTML content
|
메소드 | 설명 | |
---|---|---|
BuildAttributeViewModel ( |
Builds a attribute view model
|
|
CalculateAbsoluteInlineCodeErrorCoordinates ( |
||
CanMinifyAngularBindingExpressionInAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether to minify the Angular binding expression in attribute
|
|
CanMinifyWhitespace ( WebMarkupMin.Core.Parsers.HtmlTag tag ) : bool |
Checks whether to minify whitespaces in text content of tag
|
|
CanPreserveCase ( ) : bool |
Checks whether preserve case of tag and attribute names
|
|
CanRemoveAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether remove an the attribute
|
|
CanRemoveAttributeQuotes ( |
Checks whether it is possible to remove the attribute quotes
|
|
CanRemoveEmptyAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether remove an the attribute, that has empty value
|
|
CanRemoveOptionalEndTagByNextTag ( WebMarkupMin.Core.Parsers.HtmlTag optionalEndTag, WebMarkupMin.Core.Parsers.HtmlTag nextTag ) : bool |
Checks whether remove an the optional end tag
|
|
CanRemoveOptionalEndTagByParentTag ( WebMarkupMin.Core.Parsers.HtmlTag optionalEndTag, WebMarkupMin.Core.Parsers.HtmlTag parentTag ) : bool |
Checks whether remove an the optional end tag
|
|
CanRemoveSafeOptionalEndTag ( WebMarkupMin.Core.Parsers.HtmlTag optionalEndTag ) : bool |
Checks whether remove an the safe optional end tag
|
|
CanRemoveTagWithoutContent ( WebMarkupMin.Core.Parsers.HtmlTag tag ) : bool |
Checks whether remove an the tag, that has empty content
|
|
CanRemoveWhitespaceAfterEndNonIndependentTag ( WebMarkupMin.Core.Parsers.HtmlTag endTag ) : bool |
Checks whether remove whitespace after end non-independent tag
|
|
CanRemoveWhitespaceAfterEndNonIndependentTagByParentTag ( WebMarkupMin.Core.Parsers.HtmlTag endTag, WebMarkupMin.Core.Parsers.HtmlTag parentTag ) : bool |
Checks whether remove whitespace after end non-independent tag by parent tag
|
|
CanRemoveWhitespaceBetweenNonIndependentTags ( WebMarkupMin.Core.Parsers.HtmlTag firstTag, WebMarkupMin.Core.Parsers.HtmlTag secondTag ) : bool |
Checks whether remove whitespace between non-independent tags
|
|
CanRemoveXmlNamespaceAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether remove an the
|
|
CleanAttributeValue ( |
Cleans a attribute value
|
|
CommentHandler ( |
Comments handler
|
|
ContainsAngularBindingExpression ( string directiveName ) : bool |
Determines whether a directive contains the Angular binding expression
|
|
ContainsRelExternalAttribute ( IList |
Determines whether a list of attributes contains the
|
|
DoctypeHandler ( |
Document type declaration handler
|
|
EmbeddedCodeHandler ( |
Embedded code handler
|
|
EndIfConditionalCommentHandler ( |
End If conditional comments handler
|
|
EndTagHandler ( |
End tags handler
|
|
FlushBuffer ( ) : void |
Flush a HTML minification buffer
|
|
GetInnerCrockfordJsMinifierInstance ( ) : WebMarkupMin.Core.CrockfordJsMinifier |
Gets a instance of inner Douglas Crockford's JS minifier
|
|
GetInnerHtmlMinifierInstance ( ) : |
Gets a instance of inner HTML minifier
|
|
GetInnerXmlMinifierInstance ( ) : |
Gets a instance of inner XML minifier
|
|
IfConditionalCommentHandler ( |
If conditional comments handler
|
|
IgnoredFragmentHandler ( |
Ignored fragments handler
|
|
InnerBuildAttributeViewModel ( |
||
IsAttributeRedundant ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether the attribute is redundant
|
|
IsCssTypeAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether attribute is the attribute
|
|
IsCustomAttribute ( |
Checks whether the attribute is custom
|
|
IsJavaScriptTypeAttribute ( WebMarkupMin.Core.Parsers.HtmlTag tag, |
Checks whether attribute is the attribute
|
|
IsMetaContentTypeTag ( WebMarkupMin.Core.Parsers.HtmlTag tag ) : bool |
Checks whether the tag is a META content-type tag
|
|
MinifyAngularBindingExpression ( |
Minify a Angular binding expression
|
|
MinifyAngularBindingExpression ( |
Minify a Angular binding expression
|
|
MinifyAngularBindingExpression ( |
Minify a Angular binding expression
|
|
MinifyKnockoutBindingExpression ( |
Minify a Knockout binding expression
|
|
MinifyKnockoutBindingExpression ( |
Minify a Knockout binding expression
|
|
MinifyKnockoutBindingExpression ( |
Minify a Knockout binding expression
|
|
ProcessEmbeddedScriptContent ( |
Processes a embedded script content
|
|
ProcessEmbeddedStyleContent ( |
Processes a embedded style content
|
|
ProcessInlineScriptContent ( |
Processes a inline script content
|
|
ProcessInlineStyleContent ( |
Processes a inline style content
|
|
RemoveLastEndTagFromBuffer ( WebMarkupMin.Core.Parsers.HtmlTag endTag ) : void |
Removes a last end tag from the HTML minification buffer
|
|
RemoveLastStartTagFromBuffer ( WebMarkupMin.Core.Parsers.HtmlTag startTag ) : bool |
Removes a last start tag from the HTML minification buffer
|
|
StartTagHandler ( |
Start tags handler
|
|
TemplateTagHandler ( |
Template tags handler
|
|
TextHandler ( |
Text handler
|
|
TrimEndLastBufferItem ( ) : void |
Removes all ending spaces in the last item of the HTML minification buffer
|
|
UpgradeToMetaCharsetTag ( WebMarkupMin.Core.Parsers.HtmlTag tag ) : WebMarkupMin.Core.Parsers.HtmlTag |
Upgrades a META content-type tag to the META charset tag
|
|
WriteError ( string category, string message, string filePath, int lineNumber, int columnNumber, string sourceFragment ) : void |
Writes a information about the error
|
|
WriteWarning ( string category, string message, string filePath, int lineNumber, int columnNumber, string sourceFragment ) : void |
Writes a information about the warning
|
|
XmlDeclarationHandler ( |
XML declaration handler
|
public GenericHtmlMinifier ( GenericHtmlMinificationSettings settings = null, ICssMinifier cssMinifier = null, IJsMinifier jsMinifier = null, ILogger logger = null ) : System | ||
settings | GenericHtmlMinificationSettings | Generic HTML minification settings |
cssMinifier | ICssMinifier | CSS minifier |
jsMinifier | IJsMinifier | JS minifier |
logger | ILogger | Logger |
리턴 | System |
public Minify ( string content ) : |
||
content | string | HTML content |
리턴 |
public Minify ( string content, |
||
content | string | HTML content |
encoding | Text encoding | |
리턴 |
public Minify ( string content, bool generateStatistics ) : |
||
content | string | HTML content |
generateStatistics | bool | Flag for whether to allow generate minification statistics |
리턴 |
public Minify ( string content, string fileContext ) : |
||
content | string | HTML content |
fileContext | string | File context |
리턴 |
public Minify ( string content, string fileContext, |
||
content | string | HTML content |
fileContext | string | File context |
encoding | Text encoding | |
generateStatistics | bool | Flag for whether to allow generate minification statistics |
리턴 |