Permalink
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (47 sloc) 726 Bytes
=== Spec Example 2.7. Two Documents in a Stream
--- from: http://www.yaml.org/spec/1.2/spec.html#id2760493
--- tags: spec header
--- in-yaml(<)
# Ranking of 1998 home runs
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
# Team ranking
---
- Chicago Cubs
- St Louis Cardinals
--- in-json
[
"Mark McGwire",
"Sammy Sosa",
"Ken Griffey"
]
[
"Chicago Cubs",
"St Louis Cardinals"
]
--- out-yaml(<)
---
- Mark McGwire
- Sammy Sosa
- Ken Griffey
---
- Chicago Cubs
- St Louis Cardinals
--- test-event
+STR
+DOC ---
+SEQ
=VAL :Mark McGwire
=VAL :Sammy Sosa
=VAL :Ken Griffey
-SEQ
-DOC
+DOC ---
+SEQ
=VAL :Chicago Cubs
=VAL :St Louis Cardinals
-SEQ
-DOC
-STR