Keep It Simple, Stupid | |
PerlMonks |
Re: Dancer 2 yaml config file (is a hash of hashes ... key collision/clobbering is a common pitfall)by Anonymous Monk |
on Feb 09, 2015 at 00:42 UTC ( [id://1115982]=note: print w/replies, xml ) | Need Help?? |
Can anyone spot what I'm doing wrong? looks like you're using yaml instead of code, and its tricking your mind, see https://metacpan.org/pod/distribution/Dancer2/lib/Dancer2/Config.pod#MANIPULATING-SETTINGS-VIA-CODE Config is a hash, a hash of hashes, meaning there is only one %engines, there can be only one engines
IMHO, this is one of those pitfalls that shouldn't exist :) Dancer provides so many conveniences, why not a reminder that key are colliding/being clobbered
In Section
Seekers of Perl Wisdom
|
|