Summary
Minifies the XML content.
- Assembly
- Wyam
.Minification .dll - Namespace
- Wyam
.Minification - Interfaces
- Base Types
-
- Object
- MinifierBase
graph BT
Type-->Base0["MinifierBase"]
click Base0 "/api/Wyam.Minification/MinifierBase"
Base0-->Base1["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["MinifyXml"]
class Type type-node
Syntax
public class MinifyXml : MinifierBase, IModule
Examples
Pipelines.Add("Blog posts",
ReadFiles("posts/*.md"),
FrontMatter(Yaml()),
Markdown(),
WriteFiles(".html"),
Rss(siteUri: "http://example.org",
rssPath: new FilePath("posts/feed.rss"),
feedTitle: "My awesome blog",
feedDescription: "Blog about something"
),
MinifyXml(),
WriteFiles()
);
Remarks
This module takes the XML content and uses minification to reduce the output.
Constructors
Name | Summary |
---|---|
MinifyXml |
Minifies the XML content. |
Methods
Name | Value | Summary |
---|---|---|
Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
Minify |
IEnumerable |
Inherited from MinifierBase
|
RemoveXmlComments |
MinifyXml |
Flag for whether to remove all XML comments.
|
WithSettings |
MinifyXml |
Updates the minification settings.
|