8 Jan
2012
8 Jan
'12
6:02 p.m.
Hi! I created Dancer application using "dancer -a test" command. Here are config.yml contents: appname: "test" layout: "main" charset: "UTF-8" template: "simple" is_it_old_config_file: "yep" Additionaly, I have created another config.yml in subdirectory named cfg. It has following contents: appname: "test" layout: "main" charset: "UTF-8" template: "simple" is_it_old_config_file: "nope" lib/test.pm: package test; use Dancer ':syntax'; get '/' => sub { return config->{is_it_old_config_file} }; true; When I run application with "app.pl --confdir=cfg" command, I get "yep" instead of "nope". I tried to specify absolute path, it didn't change anything. I'm using Windows if it matters. Thanks in advance, Tomasz