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.
Package
#n Wyam.Html
Usage
-
HtmlInsert(string querySelector, DocumentConfig content)Creates the module with the specified query selector.
querySelectorThe query selector to use.
contentThe content to insert as a delegate that should return a
string.
-
HtmlInsert(string querySelector, string content)Creates the module with the specified query selector.
querySelectorThe query selector to use.
contentThe content to insert.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
AtPosition(AdjacentPosition position = 2)Specifies where in matching elements the new content should be inserted.
positionA
AngleSharp.Dom.AdjacentPositionindicating where the new content should be inserted.
-
First(bool first = true)Specifies that only the first query result should be processed (the default is
false).firstIf set to
true, only the first result is processed.
