This middleware parses the specified YAML or JSON files or resources from URL and makes their content available in a map variable within the templates.
Options are a map where the key is the name of the attribute and the value can be either a map with type, format and resource location specified or is the path to the YAML formatted data file relative to the
src/data folder. HTTPS is also supported.
# site.yml data: references: references.yml other_references: type: http format: json resource: https://www.example.com/references.json
|data||map||The name of the key in the data map is the same as the key in the definition map in site.yml. The value is the contents of the data YAML file.|
|type||enum||The type indicating whether a resource is of type
|format||enum||The type indicating whether a resource is in
|resource||string||The path to the local file or the URL to the remote resource.|