[Dancer-users] request for feature

Puneet Kishor punk.kish at gmail.com
Mon Jan 17 20:03:43 CET 2011


unless default params already exist, the following would make life a lot 
easier

get '/foo/:foo_id?/bar/:bar_id?' => sub {
	my $foo_id = params->{'foo_id'} || <default foo value>;
	my $bar_id = params->{'bar_id'} || <default bar value>;
};

Many thanks,


-- 
Puneet Kishor


More information about the Dancer-users mailing list