Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 29, 2012
1 parent 2b1503d commit 7dbbada
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
44 changes: 22 additions & 22 deletions lib/Mojo/Template.pm
Expand Up @@ -463,8 +463,8 @@ L<Mojo::Template> implements the following attributes.
=head2 C<auto_escape>
my $auto_escape = $mt->auto_escape;
$mt = $mt->auto_escape(1);
my $escape = $mt->auto_escape;
$mt = $mt->auto_escape(1);
Activate automatic XML escaping.
Expand All @@ -479,8 +479,8 @@ wrong.
=head2 C<capture_end>
my $capture_end = $mt->capture_end;
$mt = $mt->capture_end('end');
my $end = $mt->capture_end;
$mt = $mt->capture_end('end');
Keyword indicating the end of a capture block, defaults to C<end>.
Expand All @@ -490,8 +490,8 @@ Keyword indicating the end of a capture block, defaults to C<end>.
=head2 C<capture_start>
my $capture_start = $mt->capture_start;
$mt = $mt->capture_start('begin');
my $start = $mt->capture_start;
$mt = $mt->capture_start('begin');
Keyword indicating the start of a capture block, defaults to C<begin>.
Expand All @@ -508,8 +508,8 @@ Template code.
=head2 C<comment_mark>
my $comment_mark = $mt->comment_mark;
$mt = $mt->comment_mark('#');
my $mark = $mt->comment_mark;
$mt = $mt->comment_mark('#');
Character indicating the start of a comment, defaults to C<#>.
Expand All @@ -531,26 +531,26 @@ Encoding used for template files.
=head2 C<escape_mark>
my $escape_mark = $mt->escape_mark;
$mt = $mt->escape_mark('=');
my $mark = $mt->escape_mark;
$mt = $mt->escape_mark('=');
Character indicating the start of an escaped expression, defaults to C<=>.
<%== $foo %>
=head2 C<expression_mark>
my $expression_mark = $mt->expression_mark;
$mt = $mt->expression_mark('=');
my $mark = $mt->expression_mark;
$mt = $mt->expression_mark('=');
Character indicating the start of an expression, defaults to C<=>.
<%= $foo %>
=head2 C<line_start>
my $line_start = $mt->line_start;
$mt = $mt->line_start('%');
my $start = $mt->line_start;
$mt = $mt->line_start('%');
Character indicating the start of a code line, defaults to C<%>.
Expand Down Expand Up @@ -582,26 +582,26 @@ wrong.
=head2 C<replace_mark>
my $replace_mark = $mt->replace_mark;
$mt = $mt->replace_mark('%');
my $mark = $mt->replace_mark;
$mt = $mt->replace_mark('%');
Character used for escaping the start of a tag or line, defaults to C<%>.
<%% my $foo = 23; %>
=head2 C<tag_start>
my $tag_start = $mt->tag_start;
$mt = $mt->tag_start('<%');
my $start = $mt->tag_start;
$mt = $mt->tag_start('<%');
Characters indicating the start of a tag, defaults to C<E<lt>%>.
<% $foo = 23; %>
=head2 C<tag_end>
my $tag_end = $mt->tag_end;
$mt = $mt->tag_end('%>');
my $end = $mt->tag_end;
$mt = $mt->tag_end('%>');
Characters indicating the end of a tag, defaults to C<%E<gt>>.
Expand All @@ -623,8 +623,8 @@ Parsed tree.
=head2 C<trim_mark>
my $trim_mark = $mt->trim_mark;
$mt = $mt->trim_mark('-');
my $mark = $mt->trim_mark;
$mt = $mt->trim_mark('-');
Character activating automatic whitespace trimming, defaults to C<=>.
Expand Down
18 changes: 9 additions & 9 deletions lib/Mojolicious/Routes/Pattern.pm
Expand Up @@ -305,8 +305,8 @@ Raw unparsed pattern.
=head2 C<placeholder_start>
my $placeholder = $pattern->placeholder_start;
$pattern = $pattern->placeholder_start(':');
my $start = $pattern->placeholder_start;
$pattern = $pattern->placeholder_start(':');
Character indicating a placeholder, defaults to C<:>.
Expand All @@ -319,14 +319,14 @@ Placeholder names.
=head2 C<quote_end>
my $quote = $pattern->quote_end;
$pattern = $pattern->quote_end(']');
my $end = $pattern->quote_end;
$pattern = $pattern->quote_end(']');
Character indicating the end of a quoted placeholder, defaults to C<)>.
=head2 C<quote_start>
my $quote = $pattern->quote_start;
my $start = $pattern->quote_start;
$pattern = $pattern->quote_start('[');
Character indicating the start of a quoted placeholder, defaults to C<(>.
Expand All @@ -340,8 +340,8 @@ Pattern in compiled regular expression form.
=head2 C<relaxed_start>
my $relaxed = $pattern->relaxed_start;
$pattern = $pattern->relaxed_start('*');
my $start = $pattern->relaxed_start;
$pattern = $pattern->relaxed_start('*');
Character indicating a relaxed placeholder, defaults to C<#>.
Expand All @@ -354,8 +354,8 @@ Pattern in parsed form.
=head2 C<wildcard_start>
my $wildcard = $pattern->wildcard_start;
$pattern = $pattern->wildcard_start('*');
my $start = $pattern->wildcard_start;
$pattern = $pattern->wildcard_start('*');
Character indicating the start of a wildcard placeholder, defaults to C<*>.
Expand Down

0 comments on commit 7dbbada

Please sign in to comment.