|No such thing as a small change|
[Solved] Plack middlewares not loaded from Dancer configby mascip (Pilgrim)
|on Oct 19, 2013 at 11:08 UTC||Need Help??|
mascip has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, I'm using Dancer2 (0.10) on Perl 5.16.3.
I manage to load Plack middlewares from app.pl, but not from the config.yml file.
*** In app.pl I have:
which works perfectly.
*** Here is what i put in config.yml instead (and which doesn't work) :
I know that the config file is used, because my "main" layout is used. And I know that this YAML is valid, and produces the following structure (outputed with Data::Printer) :
But the middleware doesn't work in this case. What have I missed?
I've followed the examples from here and there: