[dancer-users] Global keywords still in Dancer 2?

gvim gvimrc at gmail.com
Sat Dec 15 21:29:09 GMT 2012


I like a lot about Dancer 1 but I don't like the PHP-ish style of having all the helper kewords/functions in the global namespace. I'm coming to Dancer from CGI::Application where we have a persistent $c object, as with Catalyst. Is this approach built into Dancer 2 or is it still using the same global namespace approach? I'd like to be able to be able to:

my $d = new Dancer;
OR
my $d = Dancer->new();
......
$d->session();
$d->template();
etc.

gvim
  


More information about the dancer-users mailing list