NAME
Dancer::Config
DESCRIPTION
Setting registry for Dancer
SETTINGS
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.
server (UNSUPPORTED)
The IP address or servername to bind to. This setting is not yet implemented.
port
The port Dancer will listen to.
Default value is 1915.
content_type
The default content type of outgoing content. Default value is 'text/html'.
charset
The default charset of outgoing content. Default value is 'UTF-8'.
access_log
If set to 1 (default), Dancer will print on STDEER one line per hit received.
public
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.
AUTHOR
This module has been written by Alexis Sukrieh <sukria@cpan.org>
LICENSE
This module is free software and is released under the same terms as Perl itself.