| 1 |
=== yaml_org_example |
| 2 |
# Testing sample data structure from yaml.org |
| 3 |
--- yaml |
| 4 |
--- |
| 5 |
invoice: 34843 |
| 6 |
date : 2001-01-23 |
| 7 |
bill-to: |
| 8 |
given : Chris |
| 9 |
family : Dumars |
| 10 |
address: |
| 11 |
lines: | |
| 12 |
458 Walkman Dr. |
| 13 |
Suite #292 |
| 14 |
city : Royal Oak |
| 15 |
state : MI |
| 16 |
postal : 48046 |
| 17 |
product: |
| 18 |
- sku : BL394D |
| 19 |
quantity : 4 |
| 20 |
description : Basketball |
| 21 |
price : 450.00 |
| 22 |
- sku : BL4438H |
| 23 |
quantity : 1 |
| 24 |
description : Super Hoop |
| 25 |
price : 2392.00 |
| 26 |
tax : 251.42 |
| 27 |
total: 4443.52 |
| 28 |
comments: > |
| 29 |
Late afternoon is best. |
| 30 |
Backup contact is Nancy |
| 31 |
Billsmer @ 338-4338. |
| 32 |
|
| 33 |
--- perl |
| 34 |
[ { |
| 35 |
invoice => 34843, |
| 36 |
date => '2001-01-23', |
| 37 |
'bill-to' => { |
| 38 |
given => 'Chris', |
| 39 |
family => 'Dumars', |
| 40 |
address => { |
| 41 |
lines => "458 Walkman Dr.\nSuite #292\n", |
| 42 |
city => 'Royal Oak', |
| 43 |
state => 'MI', |
| 44 |
postal => 48046, |
| 45 |
}, |
| 46 |
}, |
| 47 |
product => [ |
| 48 |
{ |
| 49 |
sku => 'BL394D', |
| 50 |
quantity => '4', |
| 51 |
description => 'Basketball', |
| 52 |
price => '450.00', |
| 53 |
}, |
| 54 |
{ |
| 55 |
sku => 'BL4438H', |
| 56 |
quantity => '1', |
| 57 |
description => 'Super Hoop', |
| 58 |
price => '2392.00', |
| 59 |
}, |
| 60 |
], |
| 61 |
tax => '251.42', |
| 62 |
total => '4443.52', |
| 63 |
comments => <<'END_TEXT', |
| 64 |
Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338. |
| 65 |
END_TEXT |
| 66 |
} ] |
| 67 |
|
| 68 |
--- nosyck |
| 69 |
|