<!DOCTYPE html><html><head><title></title><style type="text/css">p.MsoNormal,p.MsoNoSpacing{margin:0}</style></head><body><div>I am going to guess I am missing something obvious you are trying to do, but why can't you do this:<br></div><div><br></div><div>myapp:<br></div><div> url: <a href="http://galaxy.com">http://galaxy.com</a><br></div><div> token: 42<br></div><div><br></div><div>in any config file in your Dancer2 application? I'll do this in config.yml if I have settings across all environments, in config_local.yml for settings I don't add to version control, and in my environment yaml files when such settings are environment specific. Put that in any config file and you can simply use config->{ myapp }{ url }, etc. in your Dancer2 app.<br></div><div><br></div><div>I feel like I am missing what you are trying to do somehow. Let me know.<br></div><div>Jason</div><div><br></div><div>On Mon, Feb 8, 2021, at 4:00 PM, Gabor Szabo wrote:<br></div><blockquote type="cite" id="qt" style=""><div dir="ltr"><div>e.g. My applications uses some external system and I'd like to read its URL and the token I need to access it from some config file.<br></div><div><br></div><div>I looked at the generated config files, and the only solution I could come up with is to put it under "plugins" like this:<br></div><div><br></div><div><div>plugins:<br></div><div> MyApp:<br></div></div><div> url: <a href="http://galaxy.com/">http://galaxy.com/</a><br></div><div> token: 42<br></div><div><br></div><div>I don't really like it.<br></div><div><div>What is the recommended way to do it?<br></div></div><div><br></div><div>Gabor<br></div><div><br></div></div><div>_______________________________________________<br></div><div>dancer-users mailing list<br></div><div><a href="mailto:dancer-users@lists.preshweb.co.uk">dancer-users@lists.preshweb.co.uk</a><br></div><div><a href="https://lists.preshweb.co.uk/mailman/listinfo/dancer-users">https://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br></div><div><br></div></blockquote><div><br></div><div id="sig108844672"><div class="signature">--<br></div><div class="signature">Jason A. Crome / CromeDome<br></div><div class="signature">CPAN: <a href="https://metacpan.org/author/CROMEDOME">https://metacpan.org/author/CROMEDOME</a><br></div><div class="signature">GitHub: <a href="https://github.com/cromedome">https://github.com/cromedome</a><br></div><div class="signature">Twitter: <a href="https://twitter.com/cromedome">https://twitter.com/cromedome</a><br></div><div class="signature">Blog: <a href="https://cromedome.net">https://cromedome.net</a><br></div></div><div><br></div></body></html>