Skip to content


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

    references: references.yml
        type: http
        format: json


name type description
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 local or http.
format enum The type indicating whether a resource is in yml or json format.
resource string The path to the local file or the URL to the remote resource.