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?

--
Henk
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to