Application specific configuration options
Hi, In https://metacpan.org/pod/Dancer2::Config I see plugins should have their configuration in plugins: plugin-name: key: value but I have not found any suggestion where should one put the application-specific configuration options. Is there a recommended, or required hierarchy for those configuration values? Maybe: applications: "App::Name": key: "value" Oh an I think it would be also good, to add an example to that pod, showing how to fetch configuration values: config->{appdir} config->{plugins}{DBIC}{default}{dsn}; and config->{applications}{'App::Name'}{key} regards Gabor
On Wed, 4 Feb 2015, Gabor Szabo wrote:
In https://metacpan.org/pod/Dancer2::Config I see plugins should have their configuration in
plugins: plugin-name: key: value
but I have not found any suggestion where should one put the application-specific configuration options.
Is there a recommended, or required hierarchy for those configuration values? Maybe:
applications: "App::Name": key: "value"
Good question. I'm writing "partial" apps. Building blocks (bigger than plugins) to compose sites. I use the global config namespace at this moment... -- Henk
participants (2)
-
Gabor Szabo -
Henk van Oers