Subject: | RFC: multiple yaml documents in a single file |
YAML supports multiple documents in a single file (with the following
syntax)
---
document: one
---
document: two
This is supported by both YAML and YAML::Syck.
However, only the first document in any file is available via Config::Any.
I propose changing the behaviour so that if a document contains multiple
streams, the config returned by load_files() is an arrayref containing
all documents.
Currently, the above file would return:
$config->[0]->{filename} = { document => 'one' }
I suggest it should be:
$config->[0]->{filename} = [
{ document => 'one' },
{ document => 'two' },
];
Would you accept a patch implementing this?