summaryrefslogtreecommitdiff
path: root/examples/anchors.yaml
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2016-11-23 09:52:14 -0600
committerAlex Gaynor <alex.gaynor@gmail.com>2016-11-23 09:52:14 -0600
commit1d24d4d2ab6656bba29e949cdf5ffe15b98429cb (patch)
tree7aa053eaa9b53d9bbd4f25779affb01ecc75def7 /examples/anchors.yaml
parent6db69c72d4823a95c8feddaaa4380d13cf02939c (diff)
downloadlibyaml-git-1d24d4d2ab6656bba29e949cdf5ffe15b98429cb.tar.gz
added an examples directory with a few yaml examples
Diffstat (limited to 'examples/anchors.yaml')
-rw-r--r--examples/anchors.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/anchors.yaml b/examples/anchors.yaml
new file mode 100644
index 0000000..8755853
--- /dev/null
+++ b/examples/anchors.yaml
@@ -0,0 +1,10 @@
+base: &base
+ name: Everyone has same name
+
+foo: &foo
+ <<: *base
+ age: 10
+
+bar: &bar
+ <<: *base
+ age: 20