Skip to content
andrewsolomon edited this page Apr 22, 2012 · 4 revisions

This is a 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 webapp using Dancer, it's wise to prepend all your settings with your webapp's package namespace to ensure you don't conflict with settings of Dancer packages. For example, rather than set data => { my => 'special_data' }; use something like: set 'MyWebapp::Foobar_data' => { my => 'special_data' };
Clone this wiki locally