[dancer-users] Application specific configuration options

Gabor Szabo gabor at szabgab.com
Wed Feb 4 04:05:42 GMT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20150204/63cd7356/attachment.html>


More information about the dancer-users mailing list