Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed a few more typos
  • Loading branch information
kraih committed Sep 22, 2011
1 parent 7a77b78 commit b37602e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Template.pm
Expand Up @@ -494,7 +494,7 @@ like that.
%# Comment line, treated as "<%# line =%>"
%% Replaced with "%", useful for generating templates
=head2 Automatic Escaping
=head2 Automatic escaping
Escaping behavior can be reversed with the C<auto_escape> attribute, this is
the default in L<Mojolicious> C<.ep> templates for example.
Expand Down Expand Up @@ -545,7 +545,7 @@ That means you can access arguments simply via C<@_>.
% my $x = shift;
test 123 <%= $foo %>
=head2 More Escaping
=head2 More escaping
You can use escaped tags and lines to generate templates.
Expand Down
26 changes: 13 additions & 13 deletions lib/Mojolicious/Lite.pm
Expand Up @@ -170,7 +170,7 @@ HTTP request and response.
$self->render(text => 'Hello World!');
};
=head2 GET/POST Parameters
=head2 GET/POST parameters
All C<GET> and C<POST> parameters are accessible via C<param>.
Expand All @@ -181,7 +181,7 @@ All C<GET> and C<POST> parameters are accessible via C<param>.
$self->render(text => "Hello $user!");
};
=head2 Stash And Templates
=head2 Stash and templates
The C<stash> is used to pass data to templates, which can be inlined in the
C<DATA> section.
Expand Down Expand Up @@ -213,7 +213,7 @@ to all HTTP features and information.
$self->render(text => $self->req->headers->user_agent);
};
=head2 Route Names
=head2 Route names
All routes can have a name associated with them, this allows automatic
template detection and back referencing with C<url_for>, C<link_to> and
Expand Down Expand Up @@ -282,7 +282,7 @@ delimited by the C<begin> and C<end> keywords.
</body>
</html>
=head2 Captured Content
=head2 Captured content
The C<content_for> helper can be used to pass around blocks of captured
content.
Expand Down Expand Up @@ -362,7 +362,7 @@ C<param>.
$self->render(text => "Our :bar placeholder matched $bar");
};
=head2 Wildcard Placeholders
=head2 Wildcard placeholders
Wildcard placeholders allow matching absolutely everything, including
C</> and C<.>.
Expand All @@ -377,7 +377,7 @@ C</> and C<.>.
@@ groovy.html.ep
Your name is <%= $you %>.
=head2 HTTP Methods
=head2 HTTP methods
Routes can be restricted to specific request methods.
Expand Down Expand Up @@ -406,7 +406,7 @@ Routes can be restricted to specific request methods.
$self->render(text => "You called /baz with $method");
};
=head2 Optional Placeholders
=head2 Optional placeholders
Routes allow default values to make placeholders optional.
Expand All @@ -422,7 +422,7 @@ Routes allow default values to make placeholders optional.
@@ groovy.txt.ep
My name is <%= $name %>.
=head2 Restrictive Placeholders
=head2 Restrictive placeholders
The easiest way to make placeholders more restrictive are alternatives, you
just make a list of possible values.
Expand Down Expand Up @@ -483,7 +483,7 @@ Restrictive placeholders can also be used for format detection.
$self->render_text('hello world!');
};
=head2 Content Negotiation
=head2 Content negotiation
For resources with different representations and that require truly
C<RESTful> content negotiation you can also use C<respond_to>.
Expand Down Expand Up @@ -645,7 +645,7 @@ secure.
app->secret('My secret passphrase here!');
=head2 File Uploads
=head2 File uploads
All files uploaded via C<multipart/form-data> request are automatically
available as L<Mojo::Upload> instances.
Expand Down Expand Up @@ -685,7 +685,7 @@ environment variable.
# Increase limit to 1GB
$ENV{MOJO_MAX_MESSAGE_SIZE} = 1073741824;
=head2 User Agent
=head2 User agent
With L<Mojo::UserAgent> there's a full featured HTTP 1.1 and WebSocket user
agent built right in.
Expand All @@ -709,7 +709,7 @@ WebSocket applications have never been this easy before.
});
};
=head2 External Templates
=head2 External templates
External templates will be searched by the renderer in a C<templates>
directory.
Expand All @@ -722,7 +722,7 @@ directory.
$self->render('foo/bar');
};
=head2 Static Files
=head2 Static files
Static files will be automatically served from the C<DATA> section
(even Base64 encoded) or a C<public> directory if it exists.
Expand Down

0 comments on commit b37602e

Please sign in to comment.