Raisin icon indicating copy to clipboard operation
Raisin copied to clipboard

Canonical way to read in config file?

Open djzort opened this issue 7 years ago • 2 comments

Is there a canonical way for Raisin apps to read in their config file?

Many other frameworks provide this type of support, making life easier (or annoying you, if you dont like they way they do it)

djzort avatar Jun 08 '17 10:06 djzort

I don't mind of config files but I just have no idea what do you want to configure. Do you want to configure a framework or your application?

khrt avatar Jun 18 '17 05:06 khrt

In my case, i want to inject database credentials rather than hardcoding them.

Obviously its not hard to call on Config::Any or similar, however I am curious if there is boilerplate functionality included.

Web frameworks such as the big three (catalyst, mojo and dancer) all have config file functionality built in, such that i can drop values in and access them in a standard way.

djzort avatar Jun 19 '17 03:06 djzort