logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::FormHandler::Render::Util - rendering utility

Author

       FormHandler Contributors - see HTML::FormHandler

Name

       HTML::FormHandler::Render::Util - rendering utility

Synopsis

       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=""');

Version

       version 0.40068

See Also