34b11405d4
Changed Loader API to be in line with Dumper, and updated examples, tutorials and docs.
13 lines
234 B
D
13 lines
234 B
D
import std.stdio;
|
|
import yaml;
|
|
|
|
void main()
|
|
{
|
|
yaml.Node root = Loader("input.yaml").load();
|
|
foreach(string word; root["Hello World"])
|
|
{
|
|
writeln(word);
|
|
}
|
|
writeln("The answer is ", root["Answer"].get!int);
|
|
}
|