Skip to content

Commit

Permalink
documentation tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Aug 22, 2011
1 parent b717d5c commit 815065f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -320,7 +320,7 @@ sub _tag {
}

# Block
if ($cb || defined($content)) {
if ($cb || defined $content) {
$tag .= '>';
$tag .= $cb ? $cb->() : $content;
$tag .= "<\/$name>";
Expand Down Expand Up @@ -587,15 +587,15 @@ Generate submit input element.
<%= tag 'div' %>
<%= tag 'div', id => 'foo' %>
<%= tag div => begin %>Content<% end %>
<%= tag div => 'Content' %>
<%= tag div => 'some & content' %>
<%= tag div => begin %>some & content<% end %>
HTML5 tag generator.
<div />
<div id="foo" />
<div>Content</div>
<div>Content</div>
<div>some &amp; content</div>
<div>some & content</div>
Very useful for reuse in more specific tag helpers.
Expand Down

0 comments on commit 815065f

Please sign in to comment.