Dancer Plugins have changed a lot in Dancer2. Dancer::Plugin is not really providing much benefit as far as I can see and getting plugins to work for both seems unnecessary.
register could equally be a simple sub with exporter.
plugin_args could be provided by directly passing in args to a constructor.
The only constructor that's really useful is the Articulate one at the beginning, and we could just create Dancer::Plugin::Articulate and Dancer2::Plugin::Articulate.
Dancer Plugins have changed a lot in Dancer2. Dancer::Plugin is not really providing much benefit as far as I can see and getting plugins to work for both seems unnecessary.
register
could equally be a simplesub
withexporter
.plugin_args
could be provided by directly passing in args to a constructor.The only constructor that's really useful is the Articulate one at the beginning, and we could just create
Dancer::Plugin::Articulate
andDancer2::Plugin::Articulate
.