Added Canvas 1.1.0, originally not under SCM so no historical development records...
[canvas.git] / library / YAML / spyc.yml
blob32d14595d354c1bf686faf93aaff9381ac8780f8
2 #    S P Y C
3 #      a simple php yaml class
4 #   v0.2(.2)
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.
13 # Added in .2
14 1040: Ooo, a numeric key! # And working comments? Wow!
16 # Mappings - with proper types
17 String: Anyone's name, really.
18 Int: 13
19 True: true
20 False: false
21 Zero: 0
22 Null: NULL
23 Float: 5.34
25 # A sequence
26 - PHP Class
27 - Basic YAML Loader
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. 
34   
35 # Sequence of mappings
37   cpu: 1.5ghz
38   ram: 1 gig
39   os : os x 10.4.1
40   
41 # Mapped sequence
42 domains:
43   - yaml.org
44   - php.net 
45   
46 # A sequence like this.
47 - program: Adium
48   platform: OS X
49   type: Chat Client
51 # A folded block as a mapped value
52 no time: >
53   There isn't any time
54   for your tricks!
55   
56   Do you understand?
57   
58 # A literal block as a mapped value
59 some time: |
60   There is nothing but time
61   for your tricks.
62   
63 # Crazy combinations
64 databases:
65   - name: spartan
66     notes:
67       - Needs to be backed up
68       - Needs to be normalized
69     type: mysql
70     
71 # You can be a bit tricky
72 "if: you'd": like
74 # Inline sequences
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]]
83 # Inline mappings
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
91   - Perl
92   - Python
93   - PHP
94   - Ruby
95 compiled languages: &CLANGS
96   - C/C++
97   - Java
98 all languages:
99   - *DLANGS
100   - *CLANGS 
101   
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."