Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exporting anchors across YAML files

Tags:

anchor

yaml

--- #File A
  - Lunch: &01
        - Chicken
        - Rice
        - Sallad
...

--- #File B
  - Monday: *01
  - Tuesday: *01
...

For example File A is in c:drive in my PC and File B is in D:drive.

How to export the anchors Using YAML?

like image 374
user2790799 Avatar asked Sep 18 '13 09:09

user2790799


1 Answers

You can't share anchors/aliases between documents; Chapter 9.1 of the YAML 1.2 spec explicitly states that each document is completely independent.

like image 100
MrBackend Avatar answered Oct 24 '22 21:10

MrBackend