table of contents
HTML::FormHandler::Render::Util(3pm) | User Contributed Perl Documentation | HTML::FormHandler::Render::Util(3pm) |
NAME¶
HTML::FormHandler::Render::Util - rendering utilityVERSION¶
version 0.40068SYNOPSIS¶
The 'process_attrs' takes a hashref and creates an attribute string for constructing HTML.my $attrs => { some_attr => 1, placeholder => 'Enter email...", class => ['help', 'special'], }; my $string = process_attrs($attrs);
...will produce:
' some_attr="1" placeholder="Enter email..." class="help special"'
If an arrayref is empty, it will be skipped. For a hash key of 'javascript' only the value will be appended (without '$key=""');
AUTHOR¶
FormHandler Contributors - see HTML::FormHandlerCOPYRIGHT AND LICENSE¶
This software is copyright (c) 2017 by Gerda Shank.This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
2017-11-11 | perl v5.26.1 |