MinifyXml Class
Minifies the XML content.
Namespace
Statiq.Minification
Interfaces
Base Types
MinifyXml
MinifierBase
object
IModule

Syntax

public class MinifyXml : MinifierBase, IModule

Remarks

This module takes the XML content and uses minification to reduce the output.

Constructors

Name Summary
MinifyXml(bool) Minifies the XML content.

Methods

Name Return Value Summary
ExecuteAsync(IExecutionContext) Task<IEnumerable<IDocument>>
This should not be called directly, instead call IExecutionContext.Execute() if you need to execute a module from within another module.
MinifyAsync(IExecutionContext, Func<string, MinificationResultBase>, string) Task<IEnumerable<IDocument>>
Inherited from MinifierBase
RemoveXmlComments(bool) MinifyXml
Flag for whether to remove all XML comments.
WithSettings(Action<XmlMinificationSettings>) MinifyXml
Updates the minification settings.

Extension Methods