Summary
Mirrors external
link
and script
resources locally.
- Assembly
- Wyam
.Html .dll - Namespace
- Wyam
.Html - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IModule"]
click Interface0 "/api/Wyam.Common.Modules/IModule"
Type["MirrorResources"]
class Type type-node
Syntax
public class MirrorResources : IModule
Remarks
For each input document, looks for link
and script
elements that link to external
resources and copies them locally, replacing the link
and script
links to the local path.
To prevent local mirroring for specific link
and script
elements, add a
data-no-mirror
attribute.
Note that because this module parses the document content as standards-compliant HTML and outputs the formatted post-parsed DOM, you should only place this module after all other template processing has been performed.
Constructors
Name | Summary |
---|---|
MirrorResources |
Mirrors external resources locally. By default, resources will be copied into the output folder
under the mirror directory.
|
MirrorResources |
Mirrors external resources locally, specifying the output location where they should be copied. |
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.
|