Skip to content

Commit

Permalink
added example for boolean attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 20, 2015
1 parent a5d51e5 commit d94f3a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -651,6 +651,7 @@ Alias for L</"tag">.
%= tag 'meta'
%= tag 'meta', charset => 'UTF-8'
%= tag 'input', name => 'foo', type => 'checkbox', disabled => undef
%= tag 'div'
%= tag div => 'test & 123'
%= tag div => (id => 'foo') => 'test & 123'
Expand All @@ -664,6 +665,7 @@ HTML tag generator.
<meta>
<meta charset="UTF-8">
<input disabled name="foo" type="checkbox">
<div></div>
<div>test &amp; 123</div>
<div id="foo">test &amp; 123</div>
Expand Down

0 comments on commit d94f3a0

Please sign in to comment.