[dancer-users] Updates to Dancer2::Plugin::Auth::Extensible

Andrew Beverley andy at andybev.com
Mon Feb 16 15:53:00 GMT 2015


On Mon, 2015-02-16 at 13:30 +0000, David Precious wrote:
> One thing I'd really like is to see DPAE for D1 & D2 merged into a
> single repo/codebase as we have for D::P::Database, with a shared
> "core" and D1 and D2 "wrappers".

I did look at this a while ago before DPAE was available for D2. The
problem is that there is D2-specific code in a lot of the module files.
For example, in most providers you have something like:

    use Dancer2::Plugin::Database;
    use Dancer2 qw(:syntax);

Is it possible to avoid that somehow?

Or maybe this is the only way to go:

> Well, actually, what I'd *really* like is a univeral D1/D2 compatible
> plugin architecture, perhaps as a Dancer::Plugin::Universal base class
> that provides the same API to modules regardless of the Dancer version
> they're running under, and use that - there's been talk of doing such a
> thing, but I haven't had time to try it, and, as far as I know, neither
> have others.




More information about the dancer-users mailing list