-
Notifications
You must be signed in to change notification settings - Fork 208
Tips and Tricks
andrewsolomon edited this page Apr 22, 2012
·
4 revisions
This is holding zone for helpful notes pending publication into the appropriate perldoc
- settings vs vars Settings persist for the life of the app, while vars vanish when the request has completed.
-
naming your settings: Dancer::Config defines a group of settings which Dancer uses. If you're developing a web app using Dancer, it's wise to prepend all your settings with your webapp's package namespace. For example, rather than
set data => { my => 'special', [qw/data/] };
use something like:
set 'MyWebapp::Foobar_data' => { my => 'special', [qw/data/] };