in reply to [Solved] Plack middlewares not loaded from Dancer config

I just noticed you say you're using Dancer2 but you're reading Dancer (Dancer1) documentation -- that can't work well :)

What does the Dancer2 documentation say?

https://metacpan.org/module/SUKRIA/Dancer2-0.10/lib/Dancer2/Cookbook.pod#Plack-middlewares mentions nothing about configuration files -- it probably doesn't work like in Dancer

  • Comment on Re: Plack middlewares not loaded from Dancer config ( Dancer2 is not Dancer)

Replies are listed 'Best First'.
Re^2: Plack middlewares not loaded from Dancer config ( Dancer2 is not Dancer)
by Anonymous Monk on Oct 22, 2013 at 00:51 UTC
    a simple ack/grep of Dancer and Dancer2 for "middlewares" and "Plack::Builder" shows Dancer2 doesn't try to load them or Builder, you have to use Plack::Builder in your app.psgi, say devapp.psgi ... :)

      Thanks a LOT!

      I was going to try it with a bare Dancer2 app, a few different middlewares, and share the code (which I don't know how to do properly - maybe a dedicated Git repo just for these tests). You've avoided me useless hours of work :-)