Options
All
  • Public
  • Public/Protected
  • All
Menu

Fence

The various options of fence allow for the processing of fenced sections in input file.
Fences are used to omit section of a build_include replacement from being processed.
Thus the fenced section is included verbatium unless options are set to explicity exclude fences from output.

Note

File level options will always take priority unless override is set to true.

FENCE EXAMPLE

Matches built in fence rules of StrictFence by seting fence to string value of regexKind.strict

Config

bp = new BuildProcess();
const opt = {
  match: {
    kind: "buildIncludeSlash"
  },
  fence: "strict"
};
const results = bp.buildInclude('','./includes/replace.txt', opt);

See Example: Custom Fence
See Example: Custom Fence Remove

See Also: IOpt.fence

Build-include Options

Generated using TypeDoc