Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use $c in templates
  • Loading branch information
kraih committed Aug 1, 2014
1 parent ea0a5e0 commit 5328a63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

5.24 2014-08-01
5.24 2014-08-02

5.23 2014-07-31
- Improved router performance.
Expand Down
10 changes: 5 additions & 5 deletions lib/Mojolicious/templates/development.html.ep
Expand Up @@ -216,8 +216,8 @@
<h1>Page not found... yet!</h1>
<p>
None of these routes could generate a response for your
<code><%= $self->req->method %></code> request for
<code><%= $self->req->url->path->to_route %></code>, maybe you need
<code><%= $c->req->method %></code> request for
<code><%= $c->req->url->path->to_route %></code>, maybe you need
to add a new one?
</p>
% my $walk = begin
Expand Down Expand Up @@ -254,7 +254,7 @@
% }
<div id="request" class="box infobox spaced">
<table>
% my $req = $self->req;
% my $req = $c->req;
%= $kv->(Method => $req->method)
% my $url = $req->url;
%= $kv->(URL => $url->to_string)
Expand All @@ -263,8 +263,8 @@
%= $kv->(Stash => dumper $snapshot)
%= $kv->(Session => dumper session)
%= $kv->(Version => $req->version)
% for my $name (sort @{$self->req->headers->names}) {
% my $value = $self->req->headers->header($name);
% for my $name (sort @{$c->req->headers->names}) {
% my $value = $c->req->headers->header($name);
%= $kv->($name, $value)
% }
</table>
Expand Down

0 comments on commit 5328a63

Please sign in to comment.