Just getting up to speed with YAML and want to confirm whether it's possible to utilise its anchor (&
) and reference (*
) functionality across separate files or separate documents within one file. For example, for the latter:
--- # Document A
Lunch: &lunch01 # Already thinking of lunch ;-)
- BBQ Chicken
- Sirloin Steak
- Roast Beef
- Salmon
...
--- # Document B
Monday: *lunch01
Tuesday: closed
Wednesday: *lunch01
Thursday: closed
Friday: *lunch01
...
(Apologies if my syntax is incorrect, still trying to convert across from thinking in terms of arrays and dictionaries.)
Does this work? Or would I go about this by merging the data within my programming language of choice at run time?