KES777 / mojo

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

Improve link_to helper #57

Open KES777 opened 5 years ago

KES777 commented 5 years ago

Summary

Improve link_to helper

Motivation

This changes are useful because we don't have to change the call from link_to to link_to + url_for

link_to Home => 'index' => {format => 'txt'} => [ query => 'value' ]

Instead of:

link_to Home => url_for( 'index' => {format => 'txt'} )
    ->query([ query => 'value' ]);
marcusramberg commented 5 years ago

I think this seems like a useful shortcut. 👍