Dancer script and module
examples/1/D2-Ajax/bin/app.psgi
#!/usr/bin/env perl use strict; use warnings; use FindBin; use lib "$FindBin::Bin/../lib"; use D2::Ajax; D2::Ajax->to_app;
examples/1/D2-Ajax/lib/D2/Ajax.pm
package D2::Ajax; use Dancer2; our $VERSION = '0.1'; get '/' => sub { template 'index'; }; true;