ParseYaml(string, bool) Constructor
The content of the input document is parsed as YAML. A dynamic object representing the first YAML document is set as the value for the given metadata key. See YamlDotNet.Dynamic for more details about the dynamic YAML object. If flatten is true, all root-level scalars are also added to the input document's metadata.
Namespace
Statiq.Yaml
Containing Type
ParseYaml

Syntax

public ParseYaml(string key, bool flatten = false)

Parameters

Name Type Description
key string The metadata key in which to set the dynamic YAML object.
flatten bool If set to true, all root-level scalars are also added to the input document's metadata.