Dancer::Config
Setting registry for Dancer
You can change a setting with the keyword set, like the following:
use Dancer; # changing default settings set port => 8080; set content_type => 'text/plain'; set access_log => 0;
Here is the list of all supported settings.
The IP address or servername to bind to. This setting is not yet implemented.
The port Dancer will listen to.
Default value is 1915.
The default content type of outgoing content. Default value is 'text/html'.
The default charset of outgoing content. Default value is 'UTF-8'.
If set to 1 (default), Dancer will print on STDEER one line per hit received.
This is the path of the public directory, where static files are stored. Any existing file in that directory will be served as a static file, before mathcing any route.
By default, it points to APPDIR/public where APPDIR is the directory that contains your Dancer script.
This module has been written by Alexis Sukrieh <sukria@cpan.org>
This module is free software and is released under the same terms as Perl itself.
Dancer
To install Dancer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dancer
CPAN shell
perl -MCPAN -e shell install Dancer
For more information on module installation, please visit the detailed CPAN module installation guide.