Dancer2
Dancer2 copied to clipboard
Perl Dancer Next Generation (rewrite of Perl Dancer)
Given the following module `Foo`: ``` package Foo; use Dancer2; use strict; use warnings; set serializer => 'JSON'; # curl -d '{ "key": [ "value" ] }' -H 'Content-Type: application/json'...
For my new plugin https://github.com/PerlDancer/Dancer2-Plugin-OpenAPI I need a way to exchange the route sub from the plugin. This is currently not possible through the code accessor, so I resorted to...
In applications where there are routes outputting json and html functions like `send_as` make that work without too much of a problem. `send_error` appears to have all the logic to...
Dancer1 allowed you to mix templates and serialized output fairly seamlessly. Upgrading to Dancer2, where serialization is applied globally, breaks this templating expectation. While a couple of solutions are suggested,...
Right now we throw an error when we can't retrieve. Since not being able to retrieve _does happen_, we actually then test for it to _not_ throw an error. This...
From IRC because I'm busy+lazy: ``` If I write my own serializer, it must live in Dancer2::Serializer::Whatever? That sucks. perlpilot: Well, the interface between it and D2 does. Your serialiser...
Currently you cannot pick which DSL keywords would be imported from Dancer2. This also confuses static analyzer Perl::Critic. I suggest we allow this. We currently check for the following: *...
I am surprised to find that the following are equivalent: ``` get q{/foo/(\\d+)} => sub{...}; get qr{/foo/(\\d+)} => sub{...}; ``` Fortunately, it looks like `.` does not have it's regular...
This is something for the wishlist, not an issue itself. Right now uri_for converts a relative path to an absolute path and attaches parameters if necessary. In case you have...
If the DANCER_CONTENT_TYPE is set some tests fails: **DANCER_CONTENT_TYPE=application/json** ``` t/00-compile.t .................. ok t/00-report-prereqs.t ........... # # Versions for all modules listed in MYMETA.json (including optional ones): # # ===...