Module includes

Source
Expand description

This module implements “messy includes”, or legacy Wikidot includes.

It is an annoying but necessary hack that parses the psuedoblock [[include]] and directly replaces that part with the foreign page’s wikitext.

Structs§

DebugIncluder
An Includer that replaces included references with the page content followed by the include variables and their values.
FetchedPage
A type used by Includer which represents a page that is ready to be included.
IncludeRef
Represents an include block before it has been replaced with the fetched page.
NullIncluder
An Includer that replaces include blocks with nothing.

Traits§

Includer
A trait that handles the formatting of included pages.

Functions§

include
Replaces the include blocks in a string with the content of the pages referenced by those blocks.