KES777 / mojo

Mojolicious - Perl real-time web framework
http://mojolicio.us
Artistic License 2.0
0 stars 0 forks source link

route option is not rendered #14

Open KES777 opened 7 years ago

KES777 commented 7 years ago

here is problem: https://metacpan.org/source/SRI/Mojolicious-7.24/lib/Mojolicious/Routes/Pattern.pm#L72 When I want to force default value to rendered I supply its value as artument $r->render({ api => 1 }) but when :api equal to default it is not rendered.

It think there should be condition like: exists $values->{ $value } at that line