Skip to content

Commit

Permalink
more links to the guides
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed May 24, 2012
1 parent 8adece3 commit 87d3c41
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/IOLoop/Server.pm
Expand Up @@ -22,8 +22,8 @@ use constant TLS_WRITE => TLS ? IO::Socket::SSL::SSL_WANT_WRITE() : 0;

# To regenerate the certificate run this command (18.04.2012)
# openssl req -new -x509 -keyout server.key -out server.crt -nodes -days 7300
my $CERT = catfile(dirname(__FILE__), 'server.crt');
my $KEY = catfile(dirname(__FILE__), 'server.key');
my $CERT = catfile dirname(__FILE__), 'server.crt';
my $KEY = catfile dirname(__FILE__), 'server.key';

has accepts => 10;
has reactor => sub {
Expand Down
14 changes: 2 additions & 12 deletions lib/Mojo/Template.pm
Expand Up @@ -414,8 +414,6 @@ heredocs and stuff like that.
%# Comment line, treated as "<%# line =%>"
%% Replaced with "%", useful for generating templates
=head2 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 All @@ -437,14 +435,10 @@ And a backslash in front of a newline can be escaped with another backslash.
in multiple\\
lines
=head2 Trimming
Whitespace characters around tags can be trimmed with a special tag ending.
<%= All whitespace characters around this expression will be trimmed =%>
=head2 Blocks
You can capture whole template blocks for reuse later with the C<begin> and
C<end> keywords.
Expand All @@ -455,8 +449,6 @@ C<end> keywords.
<%= $block->('Baerbel') %>
<%= $block->('Wolfgang') %>
=head2 Indentation
Perl lines can also be indented freely.
% my $block = begin
Expand All @@ -466,8 +458,6 @@ Perl lines can also be indented freely.
%= $block->('Baerbel')
%= $block->('Wolfgang')
=head2 Arguments
L<Mojo::Template> templates work just like Perl subs (actually they get
compiled to a Perl sub internally). That means you can access arguments simply
via C<@_>.
Expand All @@ -476,8 +466,6 @@ via C<@_>.
% my $x = shift;
test 123 <%= $foo %>
=head2 Exceptions
Templates get compiled to Perl code internally, this can make debugging a bit
tricky. But L<Mojo::Template> will return L<Mojo::Exception> objects that
stringify to error messages with context.
Expand All @@ -489,6 +477,8 @@ stringify to error messages with context.
5: %= $i * 2
6: </body>
See L<Mojolicious::Guides::Rendering> for more.
=head1 ATTRIBUTES
L<Mojo::Template> implements the following attributes.
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Renderer.pm
Expand Up @@ -252,8 +252,9 @@ Mojolicious::Renderer - MIME type based renderer
=head1 DESCRIPTION
L<Mojolicious::Renderer> is the standard L<Mojolicious> renderer. See
L<Mojolicious::Guides::Rendering> for more.
L<Mojolicious::Renderer> is the standard L<Mojolicious> renderer.
See L<Mojolicious::Guides::Rendering> for more.
=head1 ATTRIBUTES
Expand Down
5 changes: 3 additions & 2 deletions lib/Mojolicious/Routes.pm
Expand Up @@ -272,8 +272,9 @@ Mojolicious::Routes - Always find your destination with routes
=head1 DESCRIPTION
L<Mojolicious::Routes> is the core of the L<Mojolicious> web framework. See
L<Mojolicious::Guides::Routing> for more.
L<Mojolicious::Routes> is the core of the L<Mojolicious> web framework.
See L<Mojolicious::Guides::Routing> for more.
=head1 ATTRIBUTES
Expand Down

0 comments on commit 87d3c41

Please sign in to comment.