Skip to content

Commit

Permalink
more tag examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 28, 2013
1 parent f118fdc commit f78c64f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.51 2013-10-27
4.51 2013-10-28
- Improved .ep template performance significantly, the number of helpers no
longer has any effect. (jberger, sri)
- Improved form_for performance.
Expand Down
12 changes: 10 additions & 2 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -626,14 +626,22 @@ Alias for C<tag>.
%= tag 'div'
%= tag 'div', id => 'foo'
%= tag div => 'some & content'
<%= tag div => begin %>some & content<% end %>
%= tag div => 'some & content', id => 'foo'
%= tag div => begin
some & content
% end
<%= tag div => (id => 'foo') => begin %>some & content<% end %>
HTML tag generator.
<div />
<div id="foo" />
<div>some &amp; content</div>
<div>some & content</div>
<div id="foo">some &amp; content</div>
<div>
some & content
</div>
<div id="foo">some & content</div>
Very useful for reuse in more specific tag helpers.
Expand Down

0 comments on commit f78c64f

Please sign in to comment.