jw.include now supports specifying a target path where the included
content should be merged, using syntax similar to named links:
jw.include: "path.to.target|/path/to/file.yaml"
The file's contents are deep-merged into the target path in the
resulting document tree. If the target path doesn't exist,
intermediate dicts are created automatically.
Original behavior (plain string) still works:
jw.include: "/path/to/file.yaml"
This merges the file at the root of the document.
Mixed usage is supported:
jw.include:
- "/path/to/plain.yaml"
- section|/path/to/target.yaml
Added 8 unit tests covering: plain includes, nested paths, deep paths,
merge with existing, override existing, multiple paths, optional
includes, and mixed plain/path includes.
Signed-off-by: Jan Lindemann <jan@janware.com>