YAML |
YAML is a .
= Features =
YAML was created with the belief that all data can be adequately represented by combinations of lists, hashes, and scalar data. The syntax is relatively straightforward and was designed with human readability in mind, but also to be easily mapped to data types common to most high-level languages:
= Examples =
== Lists ==
--- # Favorite movies, block format - Casablanca - Spellbound - Notorious --- # Shopping list, inline format [milk, bread, eggs]
== Hashes ==
--- # Block name: John Smith age: 33 --- # Inline {name: John Smith, age: 33}
== Block Literals ==
=== Newlines preserved ===
--- | There was a young fellow of Warwick Who had reason for feeling euphoric For he could, by election Have triune erection Ionic, Corinthian, and Doric
=== Newlines folded ===
--- > Wrapped text will be folded into a single paragraph Blank lines denote paragraph breaks
== Lists of Hashes ==
- {name: John Smith, age: 33} - name: Mary Smith age: 27
== Hashes of Lists ==
men: [John Smith, Bill Jones] women: - Mary Smith - Susan Williams
=Implementations=
Bindings for YAML exist for the following languages: *JavaScript *Perl *PHP *Python_programming_language *Ruby programming language (uses YAML as the de facto serialization format; YAML included in standard library since 1.8.) *XML (currently draft only)
=Other simplified markup languages=
*Simple Outline XML *OGDL *BBCode *S-expressions
= External links =
|
|