Skip to content

Commit

Permalink
more consistent examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 12, 2016
1 parent 038aa5a commit 1b32313
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Cookbook.pod
Expand Up @@ -1069,7 +1069,7 @@ Sending a streaming request is almost just as easy.
my $tx = $ua->build_tx(GET => 'http://example.com');

# Prepare body
my $body = 'Hello world!';
my $body = 'Hello World!';
$tx->req->headers->content_length(length $body);

# Start writing directly with a drain callback
Expand Down
8 changes: 4 additions & 4 deletions lib/Mojolicious/Guides/Growing.pod
Expand Up @@ -64,14 +64,14 @@ session state is kept client-side.

+---------+ +------------+
| | -> PUT /foo -> | |
| | -> Hello world! -> | |
| | -> Hello World! -> | |
| | | |
| | <- 201 CREATED <- | |
| | | |
| | -> GET /foo -> | |
| Browser | | Web Server |
| | <- 200 OK <- | |
| | <- Hello world! <- | |
| | <- Hello World! <- | |
| | | |
| | -> DELETE /foo -> | |
| | | |
Expand Down Expand Up @@ -188,7 +188,7 @@ This will be the foundation for our login manager example application.

get '/' => sub {
my $c = shift;
$c->render(text => 'Hello world!');
$c->render(text => 'Hello World!');
};

app->start;
Expand Down Expand Up @@ -244,7 +244,7 @@ sent back to the browser.

HTTP/1.1 200 OK
Content-Length: 12
Hello world!
Hello World!

=head2 Model

Expand Down
4 changes: 2 additions & 2 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -1275,7 +1275,7 @@ smaller chunks.
my $c = shift;

# Prepare body
my $body = 'Hello world!';
my $body = 'Hello World!';
$c->res->headers->content_length(length $body);

# Start writing directly with a drain callback
Expand All @@ -1299,7 +1299,7 @@ has actually been written.
Content-Length: 12
Server: Mojolicious (Perl)

Hello world!
Hello World!

=head2 Chunked transfer encoding

Expand Down
8 changes: 4 additions & 4 deletions t/mojolicious/layouted_lite_app.t
Expand Up @@ -261,10 +261,10 @@ $t->get_ok('/withblocklayout')->status_is(200)
$t->get_ok('/content_for')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is(
"Content!This\n\nseems\nto\nHello world!\n\nwork!\n\nShared content!\n\n");
"Content!This\n\nseems\nto\nHello World!\n\nwork!\n\nShared content!\n\n");
$t->get_ok('/content_with')->status_is(200)
->header_is(Server => 'Mojolicious (Perl)')
->content_is("Default\n\nSomething <b>else</b>!\n\n\n<br>Hello world!\n\n");
->content_is("Default\n\nSomething <b>else</b>!\n\n\n<br>Hello World!\n\n");

# Inline template
$t->get_ok('/inline')->status_is(200)
Expand Down Expand Up @@ -450,7 +450,7 @@ This
<% content_for message => begin =%>Hello<% end %>
seems
% content_for message => begin
world!
World!
% end
to
<%= content_for 'message' %>
Expand All @@ -467,7 +467,7 @@ to
%= content_with 'first'
% content_with first => '';
%= content_with 'first'
<% content second => begin %>world<% end %>
<% content second => begin %>World<% end %>
<%= content_with second => begin %><br>Hello <%= content 'second' %>!<% end %>
% content_with 'second'
Expand Down

0 comments on commit 1b32313

Please sign in to comment.