Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by Anonymous Monk
on Oct 22, 2013 at 00:43 UTC ( [id://1059182]=note: print w/replies, xml ) Need Help??


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 :-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1059182]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-25 18:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found