Skip to content

Commit

Permalink
use link_to helper in generated app
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 16, 2015
1 parent d9ea48e commit 2013377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

5.80 2015-02-16
- Improved app generator command to use current best practices.
- Fixed url_for to handle paths without trailing slash correctly in embedded
applications.

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Command/generate/app.pm
Expand Up @@ -194,5 +194,5 @@ done_testing();
<h2><%%= $msg %></h2>
This page was generated from the template "templates/example/welcome.html.ep"
and the layout "templates/layouts/default.html.ep",
<a href="<%%== url_for %>">click here</a> to reload the page or
<a href="/index.html">here</a> to move forward to a static page.
<%%= link_to 'click here' => url_for %> to reload the page or
<%%= link_to 'here' => '/index.html' %> to move forward to a static page.

0 comments on commit 2013377

Please sign in to comment.