Skip to content

Commit

Permalink
Merge pull request #1946 from lindleyw/master
Browse files Browse the repository at this point in the history
Clarify link_to arguments
  • Loading branch information
mergify[bot] authored Aug 16, 2022
2 parents ac8eb21 + b3f699a commit 2517d80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,12 @@ content.
<a href="https://mojolicious.org">Mojolicious</a>
<a href="http://127.0.0.1:3000/current/path?foo=bar">Retry</a>
The first argument to C<link_to> is the link content, except when the
final argument is Perl code such as a template block (created with the
C<begin> and C<end> keywords); in that case, the link content is
omitted at the start of the argument list, and the block will become
the link content.
=head2 month_field
%= month_field 'vacation'
Expand Down

0 comments on commit 2517d80

Please sign in to comment.