[Dancer-users] Create standard CPAN module structure

Gabor Szabo szabgab at gmail.com
Wed Apr 7 06:00:09 UTC 2010


Hi,

I have a couple of issues, before opening tickets let me ask them.

IMHO it would be better to create a CPAN like distribution
instead of what dancer creates now so I wonder if it would be better to

dancer -a rock

- create Makefile.PL
- put module in lib and call it    Rock.pm
- in order to find the module the rock.pl should contain something like this:

  use Cwd ();
  use lib path(dirname(Cwd::abs_path $0), 'lib');

  Making sure the module can be loaded even if the script is executed while
  the current directory is in another place. Add this before the "use
Application;"
  line or add a function to Dancer  setup_relative_dir() and insert
that in the script
  or make this part of Dancer.pm.


- creat t/ directory and a simple test that can launch
   the application and test it
- Add default pod in the module:

=head1 NAME

Module - A Dance based web application

=head COPYRIGHT

=head1 LICENSE

=cut


regards
   Gabor


More information about the Dancer-users mailing list