[dancer-users] Dancer::Plugin2

Henk van Oers hvo.pm at xs4all.nl
Sun Feb 8 09:21:52 GMT 2015

What does plugin_args do when you D*::Plugin ?

In Dancer::Plugin

sub plugin_args { (undef, @_) }

In Dancer2::Plugin

sub plugin_args {@_}

What if there is a module Dancer::Plugin2 (or Dancer2::Plugin2)
that detects the Dancer version
and in the D1 case constructs a real $dsl object?

Can this help to write D1 plugins the D2 way?

And then make DRY plugins under this new namespace?


More information about the dancer-users mailing list