Vapor v0.7.0 Vapor.Provider.File View Source
Module for loading supported file format configs Supported file formats: .json, .toml, .yaml. Bindings to specific keys must be provided as a keyword list. The values for each key must be either a string or a path based on the Access protocol.
Example
%File{path: "config.toml", bindings: [foo: "foo", nested: ["some", "nested", "value"]]}