Skip to content

Commit

Permalink
more documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 8, 2011
1 parent e56de4c commit c2a1bc3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -83,10 +83,10 @@ usually look a bit better.
% }
Text after.

You can also insert results from actual Perl code using expressions, by
default the characters C<E<lt>>, C<E<gt>>, C<&>, C<'> and C<"> will be
escaped to prevent XSS attacks against your application.
Semicolons get automatically appended to all expressions.
An additional equal sign can be used to disable escaping of the characters
C<E<lt>>, C<E<gt>>, C<&>, C<'> and C<"> in results from Perl expressions,
which is the default to prevent XSS attacks against your application.

<%= 'lalala' %>
<%== '<p>test</p>' %>
Expand Down Expand Up @@ -119,8 +119,9 @@ controller instance as C<$self>.

Hello <%= $name %>.

There are also many built-in helper functions such as C<url_for>, which
allows you to generate the URL of a specific route just from its name.
There are also many built-in helper functions such as C<url_for>, a full list
can be found in L<Mojolicious::Plugin::DefaultHelpers> and
L<Mojolicious::Plugin::TagHelpers>.

<%= url_for 'some_route' %>

Expand Down

0 comments on commit c2a1bc3

Please sign in to comment.