Skip to content

Commit

Permalink
removed experimental status from label_for helper
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 3, 2013
1 parent 07562ff commit e931641
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
1 change: 1 addition & 0 deletions Changes
@@ -1,5 +1,6 @@

4.44 2013-10-03
- Removed experimental status from label_for helper.

4.43 2013-10-02
- Removed generators for dynamic error messages from Mojolicious::Validator.
Expand Down
19 changes: 9 additions & 10 deletions lib/Mojolicious/Plugin/TagHelpers.pm
Expand Up @@ -436,31 +436,30 @@ Generate portable script tag for C<Javascript> asset.
=head2 label_for
%= label_for first_name => 'First name'
%= label_for first_name => 'First name, class => 'labels'
%= label_for first_name => 'First name, class => 'user'
%= label_for first_name => begin
First name
% end
%= label_for first_name => (class => 'labels') => begin
%= label_for first_name => (class => 'user') => begin
First name
% end
Generate label. Note that this helper is EXPERIMENTAL and might change without
warning!
Generate label.
<label for="first_name">First name</label>
<label class="labels" for="first_name">First name</label>
<label class="user" for="first_name">First name</label>
<label for="first_name">
First name
</label>
<label class="labels" for="first_name">
<label class="user" for="first_name">
First name
</label>
=head2 link_to
%= link_to Home => 'index'
%= link_to Home => 'index' => {format => 'txt'} => (class => 'links')
%= link_to index => {format => 'txt'} => (class => 'links') => begin
%= link_to Home => 'index' => {format => 'txt'} => (class => 'menu')
%= link_to index => {format => 'txt'} => (class => 'menu') => begin
Home
% end
%= link_to Contact => 'mailto:sri@example.com'
Expand All @@ -473,8 +472,8 @@ Generate portable link to route, path or URL, defaults to using the
capitalized link target as content.
<a href="/path/to/index">Home</a>
<a class="links" href="/path/to/index.txt">Home</a>
<a class="links" href="/path/to/index.txt">
<a class="menu" href="/path/to/index.txt">Home</a>
<a class="menu" href="/path/to/index.txt">
Home
</a>
<a href="mailto:sri@example.com">Contact</a>
Expand Down

0 comments on commit e931641

Please sign in to comment.