On Sun, 8 Feb 2015, David Precious wrote:
On Sun, 8 Feb 2015 10:21:52 +0100 (CET)
Henk van Oers <[email protected]> wrote:
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?

It can get DRYer.
All existing plugins can stay in there current namespace.

This is something I've really wanted to find time to attempt - a
universal plugin API module that plugins could inherit from, and write
code using that API which would work the same in D1 & D2.

Unfortunately, a tuit shortage has prevented me from it, so far; I
think it'd need some fairly careful design to be useful, but if
achieved, it'd be fantastic.

Perhaps it's something we could collaborate on?

Yes please.
I have a tuit shortage to convert all my D1 stuff.
I can make a POC for a small D1 plugin and run it under D2.

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

Reply via email to