15 Dec
2012
15 Dec
'12
9:29 p.m.
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