3 # a simple php yaml class
6 # author: [chris wanstrath, chris@ozmm.org]
7 # websites: [http://www.yaml.org, http://spyc.sourceforge.net/]
8 # license: [MIT License, http://www.opensource.org/licenses/mit-license.php]
9 # copyright: (c) 2005-2006 Chris Wanstrath
11 # spyc.yml - A file containing the YAML that Spyc understands.
14 1040: Ooo, a numeric key! # And working comments? Wow!
16 # Mappings - with proper types
17 String: Anyone's name, really.
28 - Very Basic YAML Dumper
30 # A sequence of a sequence
32 - YAML is so easy to learn.
33 - Your config files will never be the same.
35 # Sequence of mappings
46 # A sequence like this.
51 # A folded block as a mapped value
58 # A literal block as a mapped value
60 There is nothing but time
67 - Needs to be backed up
68 - Needs to be normalized
71 # You can be a bit tricky
75 - [One, Two, Three, Four]
77 # Nested Inline Sequences
78 - [One, [Two, And, Three], Four, Five]
80 # Nested Nested Inline Sequences
81 - [This, [Is, Getting, [Ridiculous, Guys]], Seriously, [Show, Mercy]]
84 - {name: chris, age: young, brand: lucky strike}
86 # Nested inline mappings
87 - {name: mark, age: older than chris, brand: [marlboro, lucky strike]}
89 # References -- they're shaky, but functional
90 dynamic languages: &DLANGS
95 compiled languages: &CLANGS
102 # Added in .2.2: Escaped quotes
103 - you know, this shouldn't work. but it does.
104 - 'that''s my value.'
105 - 'again, that\'s my value.'
106 - "here's to \"quotes\", boss."