Dancer-Plugin-SimpleCRUD icon indicating copy to clipboard operation
Dancer-Plugin-SimpleCRUD copied to clipboard

Feature: work with Dancer2

Open bigpresh opened this issue 8 years ago • 2 comments

Sadly, Dancer::Plugin::SimpleCRUD is currently D1-only.

I very much want to make it work with Dancer2, but just haven't had the time to spend on it yet - my spare time is spread thinly, and my paying work involves D1 primarily currently.

I would ideally like to consider trying to implement a D1/D2 plugin base class which provides a DSL for plugins to use that handles the D1/D2 differences under the hood, but I'm not sure how feasible that is.

bigpresh avatar May 21 '17 21:05 bigpresh

Should we consider putting D:P:SimpleCRUD into maint mode and porting this to D2:P:SimpleCRUD?

joshrabinowitz avatar May 20 '20 15:05 joshrabinowitz

I wonder if we can take an approach like D::P::Database, where we ended up with a shared core which is then used by D::P::Database and D2::P::Database - so the actual plugins are an as-thin-as-possible wrapper around the actual core.

May or may not work as well here, as SimpleCRUD has some hairier interactions with Dancer I believe.

I still would really really like to come up with some kind of plugin abstraction that provides the same interface for plugins running under both Dancers, so you could as a plugin author just inherit from it and use its interface, and know that your plugin will work in both - but I am struggling for time lately.

bigpresh avatar May 21 '20 09:05 bigpresh