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 import 'package:yaml/yaml.dart'; |
| 7 main() { |
| 8 var doc = loadYaml("YAML: YAML Ain't Markup Language"); |
| 9 print(doc['YAML']); |
| 10 } |
| 11 |
| 12 This library currently doesn't support dumping to YAML. You should use |
| 13 `stringify` from `dart:json` instead: |
| 14 |
| 15 import 'dart:json' as json; |
| 16 import 'package:yaml/yaml.dart'; |
| 17 main() { |
| 18 var doc = loadYaml("YAML: YAML Ain't Markup Language"); |
| 19 print(json.stringify(doc)); |
| 20 } |
| 21 |
| 22 The source code for this package is at <http://code.google.com/p/dart>. |
| 23 Please file issues at <http://dartbug.com>. Other questions or comments can be |
| 24 directed to the Dart mailing list at <mailto:misc@dartlang.org>. |
OLD | NEW |