Summary
Queries HTML content of the input documents and inserts new content into the elements that
match a query selector.
- 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["HtmlInsert"]
class Type type-node
Syntax
public class HtmlInsert : IModule
Remarks
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 |
|---|---|
| HtmlInsert |
Creates the module with the specified query selector. |
| HtmlInsert |
Creates the module with the specified query selector. |
Methods
| Name | Value | Summary |
|---|---|---|
| AtPosition |
HtmlInsert |
Specifies where in matching elements the new content should be inserted.
|
| Execute |
IEnumerable |
This should not be called directly, instead call
IExecutionContext.Execute() if you need to execute a module from within another module.
|
| First |
HtmlInsert |
Specifies that only the first query result should be processed (the default is
false).
|
