The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTML::FormHandler::Widget::Wrapper::Simple - simple field wrapper

VERSION

version 0.36001

SYNOPSIS

This is the default wrapper role. It will be installed if no other wrapper is specified and widget_wrapper is not set to 'none'.

It used the 'widget_tags' keys 'wrapper_start' and 'wrapper_end', so that the default '<div<%class>>' and '</div>' tags may be replaced. The following will cause the fields to be wrapped in paragraph tags instead:

   has '+widget_tags' => ( default => sub { {
      wrapper_start => '<p>',
      wrapper_end   => '</p>' }
   );

Alternatively, 'wrapper_tag' can be set to switch to a tag besides 'div', but still use the the wrapper attribute processing:

   has '+widget_tags' => ( default => sub { { wrapper_tag => 'p' } } );

AUTHOR

FormHandler Contributors - see HTML::FormHandler

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 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.