Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
better example tags
  • Loading branch information
kraih committed Jan 20, 2015
1 parent d94f3a0 commit ab71ebf
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -649,10 +649,9 @@ Alias for L</"tag">.
=head2 tag
%= tag 'meta'
%= tag 'meta', charset => 'UTF-8'
%= tag 'input', name => 'foo', type => 'checkbox', disabled => undef
%= tag 'br'
%= tag 'div'
%= tag 'div', id => 'invisible', hidden => undef
%= tag div => 'test & 123'
%= tag div => (id => 'foo') => 'test & 123'
%= tag div => (data => {my_id => 1, Name => 'test'}) => 'test & 123'
Expand All @@ -663,10 +662,9 @@ Alias for L</"tag">.
HTML tag generator.
<meta>
<meta charset="UTF-8">
<input disabled name="foo" type="checkbox">
<br>
<div></div>
<div id="invisible" hidden></div>
<div>test &amp; 123</div>
<div id="foo">test &amp; 123</div>
<div data-my-id="1" data-name="test">test &amp; 123</div>
Expand Down

0 comments on commit ab71ebf

Please sign in to comment.