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 #58

Closed KES777 closed 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' ]);
mche commented 5 years ago

функционал уже реализован (повторю из irc) link_to url_for('index' => {format => 'txt'})->query(...)

mche commented 5 years ago

укоротить вызов link_to - да мало ли что можно улучшить...

mche commented 5 years ago

короче, стиль командной работы для новичка - заслужить репутацию в решении/обсуждении текущих и насущных проблемах, а уж потом предлагать свои хотелки/улучшалки )))