Skip to content
Stefan Hornburg (Racke) edited this page Aug 13, 2014 · 14 revisions

This is the documentation which finally ends up as Dancer2::Migration POD. See Github issue #583.

Import syntax

The following import tags are not valid/needed anymore:

use Dancer2 qw(:syntax);
use Dancer2 qw(:tests);

You can set the application name in each of your Dancer2 application modules if you just want to split up the routes into several files:

package MyApp::Routes::Account;
use Dancer2 appname => 'MyApp';

Otherwise each module becomes a separate Dancer2 application.

Apps

Single application in Dancer1 vs application per module in Dancer2. Documentation?

Plugins

plugin_setting

Cannot be called anymore outside register or on_plugin_import.

Tests

Use Plack::Test for tests.

Logs

We cannot use read_logs anymore as with Dancer2::Test.

TODO list

This list things we need to do in the D2 eco system before we can recommend it as Dancer 1 replacement for the public.

  • Plack::Test documentation #656
  • Walk through documentation and amend copy&waste from Dancer1
Clone this wiki locally