Skip to content

Commit

Permalink
link to feature pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 29, 2016
1 parent a834d61 commit 6b978f9
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/Mojo/Template.pm
Expand Up @@ -334,8 +334,8 @@ content with the L<Mojolicious> renderer.
=head1 SYNTAX
For all templates L<strict>, L<warnings>, L<utf8> and Perl 5.10 features are
automatically enabled.
For all templates L<strict>, L<warnings>, L<utf8> and Perl 5.10
L<features|feature> are automatically enabled.
<% Perl code %>
<%= Perl expression, replaced with result %>
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides.pod
Expand Up @@ -44,7 +44,7 @@ L<HTTP|https://developer.mozilla.org/en-US/docs/Web/HTTP>.

L<Mojolicious> uses a modern subset of Perl exclusively, and therefore all
documentation assumes that L<strict>, L<warnings>, L<utf8> and Perl 5.10
features are enabled, even if examples don't specifically mention it.
L<features|feature> are enabled, even if examples don't specifically mention it.

use strict;
use warnings;
Expand Down
2 changes: 1 addition & 1 deletion lib/Mojolicious/Guides/Rendering.pod
Expand Up @@ -65,7 +65,7 @@ L<Mojolicious> includes a minimalistic but very powerful template system out of
the box called Embedded Perl or C<ep> for short. It allows the embedding of
Perl code right into actual content using a small set of special tags and line
start characters. For all templates L<strict>, L<warnings>, L<utf8> and Perl
5.10 features are automatically enabled.
5.10 L<features|feature> are automatically enabled.

<% Perl code %>
<%= Perl expression, replaced with XML escaped result %>
Expand Down
6 changes: 3 additions & 3 deletions lib/Mojolicious/Guides/Tutorial.pod
Expand Up @@ -14,9 +14,9 @@ applications.
=head2 Hello World

A simple Hello World application can look like this, L<strict>, L<warnings>,
L<utf8> and Perl 5.10 features are automatically enabled and a few functions
imported when you use L<Mojolicious::Lite>, turning your script into a full
featured web application.
L<utf8> and Perl 5.10 L<features|feature> are automatically enabled and a few
functions imported when you use L<Mojolicious::Lite>, turning your script into a
full featured web application.

#!/usr/bin/env perl
use Mojolicious::Lite;
Expand Down
9 changes: 5 additions & 4 deletions lib/Mojolicious/Plugin/Config.pm
Expand Up @@ -98,10 +98,11 @@ Mojolicious::Plugin::Config - Perl-ish configuration plugin
L<Mojolicious::Plugin::Config> is a Perl-ish configuration plugin.
The application object can be accessed via C<$app> or the C<app> function,
L<strict>, L<warnings>, L<utf8> and Perl 5.10 features are automatically
enabled. You can extend the normal configuration file C<$moniker.conf> with
C<mode> specific ones like C<$moniker.$mode.conf>. A default configuration
filename will be generated from the value of L<Mojolicious/"moniker">.
L<strict>, L<warnings>, L<utf8> and Perl 5.10 L<features|feature> are
automatically enabled. You can extend the normal configuration file
C<$moniker.conf> with C<mode> specific ones like C<$moniker.$mode.conf>. A
default configuration filename will be generated from the value of
L<Mojolicious/"moniker">.
The code of this plugin is a good example for learning to build new plugins,
you're welcome to fork it.
Expand Down

0 comments on commit 6b978f9

Please sign in to comment.