From cf52d5d7e325d79f303ae72f73a438a9931cb702 Mon Sep 17 00:00:00 2001 From: aarti Date: Mon, 17 Feb 2020 15:13:10 -0800 Subject: [PATCH 1/2] Add Reference content --- yaml.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/yaml.md b/yaml.md index 695325ae5..ec7bd29c4 100644 --- a/yaml.md +++ b/yaml.md @@ -24,3 +24,12 @@ child: <<: *defaults b: 4 ``` + +### Reference content + +```yaml +values: +- &ref Something to reuse +- *ref # Reused content +``` + From 132babca6ea6256fd2a99c44eebb6836f6ac6bf5 Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Sun, 23 Feb 2020 20:34:51 +1100 Subject: [PATCH 2/2] Update yaml.md --- yaml.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/yaml.md b/yaml.md index ec7bd29c4..c0182ad60 100644 --- a/yaml.md +++ b/yaml.md @@ -28,8 +28,10 @@ child: ### Reference content ```yaml -values: -- &ref Something to reuse -- *ref # Reused content +values: &ref + - These values + - will be reused below + +other_values: + <<: *ref ``` -