Maybe you want to check that out: 
https://github.com/PerlDancer/Dancer2/commit/940829d2b70c33ea401d5967c8f3d83db96975b6

;-)