| 1 |
package HTML::FormHandler::Widget::Field::Role::HTMLAttributes; |
| 2 |
# ABSTRACT: apply HTML attributes |
| 3 |
$HTML::FormHandler::Widget::Field::Role::HTMLAttributes::VERSION = '0.410002'; |
| 4 |
|
| 5 |
use Moose::Role; |
| 6 |
use HTML::FormHandler::Render::Util ('process_attrs'); |
| 7 |
|
| 8 |
sub _add_html_attributes { |
| 9 |
my $self = shift; |
| 10 |
my $output = process_attrs( $self->attributes ); |
| 11 |
return $output; |
| 12 |
} |
| 13 |
|
| 14 |
1; |
| 15 |
|
| 16 |
__END__ |
| 17 |
|
| 18 |
=pod |
| 19 |
|
| 20 |
=encoding UTF-8 |
| 21 |
|
| 22 |
=head1 NAME |
| 23 |
|
| 24 |
HTML::FormHandler::Widget::Field::Role::HTMLAttributes - apply HTML attributes |
| 25 |
|
| 26 |
=head1 VERSION |
| 27 |
|
| 28 |
version 0.410002 |
| 29 |
|
| 30 |
=head1 SYNOPSIS |
| 31 |
|
| 32 |
Deprecated. Only here for interim compatibility, to provide |
| 33 |
'_add_html_attributes' method. Will be removed in the future. |
| 34 |
|
| 35 |
=head1 AUTHOR |
| 36 |
|
| 37 |
FormHandler Contributors - see HTML::FormHandler |
| 38 |
|
| 39 |
=head1 COPYRIGHT AND LICENSE |
| 40 |
|
| 41 |
This software is copyright (c) 2017 by Gerda Shank. |
| 42 |
|
| 43 |
This is free software; you can redistribute it and/or modify it under |
| 44 |
the same terms as the Perl 5 programming language system itself. |
| 45 |
|
| 46 |
=cut |