| OLD | NEW |
| (Empty) |
| 1 A parser for [YAML](http://www.yaml.org/). | |
| 2 | |
| 3 Use `loadYaml` to load a single document, or `loadYamlStream` to load a | |
| 4 stream of documents. For example: | |
| 5 | |
| 6 ```dart | |
| 7 import 'package:yaml/yaml.dart'; | |
| 8 | |
| 9 main() { | |
| 10 var doc = loadYaml("YAML: YAML Ain't Markup Language"); | |
| 11 print(doc['YAML']); | |
| 12 } | |
| 13 ``` | |
| 14 | |
| 15 This library currently doesn't support dumping to YAML. You should use | |
| 16 `JSON.encode` from `dart:convert` instead: | |
| 17 | |
| 18 ```dart | |
| 19 import 'dart:convert'; | |
| 20 import 'package:yaml/yaml.dart'; | |
| 21 | |
| 22 main() { | |
| 23 var doc = loadYaml("YAML: YAML Ain't Markup Language"); | |
| 24 print(JSON.encode(doc)); | |
| 25 } | |
| 26 ``` | |
| 27 | |
| 28 The source code for this package is at <http://code.google.com/p/dart>. | |
| 29 Please file issues at <http://dartbug.com>. Other questions or comments can be | |
| 30 directed to the Dart mailing list at <mailto:misc@dartlang.org>. | |
| OLD | NEW |