2 test: Trailing Document Separator
5 You can separate YAML documents
6 with a string of three dashes.
14 [ { 'foo': 1, 'bar': 2 } ],
18 [ { 'foo' => 1, 'bar' => 2 } ]
21 test: Leading Document Separator
24 You can explicitly give an opening
25 document separator to your YAML stream.
34 [ {'foo': 1, 'bar': 2}],
38 [ { 'foo' => 1, 'bar' => 2 } ]
44 The opening separator can contain directives
45 to the YAML parser, such as the version
52 array('foo' => 1, 'bar' => 2)
56 test: Red Herring Document Separator
58 Separators included in blocks or strings
59 are treated as blocks or strings, as the
60 document separator should have no indentation
66 array('foo' => "---\n")
69 test: Multiple Document Separators in Block
71 This technique allows you to embed other YAML
72 documents within literal blocks.
83 'foo' => "---\nfoo: bar\n---\nyo: baz\n",