Skip to content

IncludeReplacement

Jérôme Beau edited this page Nov 16, 2022 · 2 revisions

This allows to replace some content pattern in the context.inputFile by the content of some file in the context.outputFile.

This is typically used to include header and footer in files for instance.

Because it inserts contents whose parts can themselves be replaced by further replacements, this is the kind of replacements you want to put first in the list.

Implementations

Currently, the only predefined include replacement is the SsiIncludeReplaceCommand replaces a SSI #include directive with the specified file contents, which mimics the SSI include tag:

<!-- #include virtual="myFileName" -->

by the contents of the myFileName file, whose path is relative to content root.

Clone this wiki locally