Headless Server Developer Manual / Version 2107
Table Of ContentsWhen using includes, using YAML anchors and aliases is imperative. The contents of the includes should make use of anchors in order to reference the anchored definitions by an alias.
# Example: anchor a scalar value anyProperty: &nameAnchor anchoredContent # reuse it by alias: anyOtherPropery: *nameAnchor # which is equivalent to: anyOtherPropery: anchoredContent
Example: anchor a code snippet
# define a code snippet anchor anyProperty: &codeSnippetName - a - b - c # reuse the snippet myProperty: *codeSnippetName # which is equivalent to myProperty: - a - b - c