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.
File level options will always take priority unless override is set to true
.
Matches built in fence rules of StrictFence by seting fence to string value of regexKind.strict
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
Generated using TypeDoc