1HTML::FormHandler::RendUesre:r:UCtoinlt(r3i)buted Perl DHoTcMuLm:e:nFtoartmiHoanndler::Render::Util(3)
2
3
4
6 HTML::FormHandler::Render::Util - rendering utility
7
9 version 0.40068
10
12 The 'process_attrs' takes a hashref and creates an attribute string for
13 constructing HTML.
14
15 my $attrs => {
16 some_attr => 1,
17 placeholder => 'Enter email...",
18 class => ['help', 'special'],
19 };
20 my $string = process_attrs($attrs);
21
22 ...will produce:
23
24 ' some_attr="1" placeholder="Enter email..." class="help special"'
25
26 If an arrayref is empty, it will be skipped. For a hash key of
27 'javascript' only the value will be appended (without '$key=""');
28
30 FormHandler Contributors - see HTML::FormHandler
31
33 This software is copyright (c) 2017 by Gerda Shank.
34
35 This is free software; you can redistribute it and/or modify it under
36 the same terms as the Perl 5 programming language system itself.
37
38
39
40perl v5.30.1 2020-01-30HTML::FormHandler::Render::Util(3)