HTML::Widget::Plugin::Attrs - an HTML attribute string
version 0.204
This plugin produces HTML attribute strings.
provided_widgets
This plugin provides the following widgets: attrs
attrs
This method returns HTML attribute strings, so:
$factory->attrs({ size => 10, name => q(Michael "Five-Toes" O'Gambini), });
will produce something like:
size="10" name="Michael "Five-Toes""
None of the standard argument rewriting applies. These are the valid arguments:
This may be the name of an HTML element. If given, it will be used to look up what attributes are boolean.
This may be an arrayref of attribute names to treat as boolean arguments.
All attributes not beginning with a dash will be treated as attributes for the attribute string. Boolean attributes will always have the attribute name as the value if true, and will be omitted if false.
If both -tag and -bool are given, they are unioned.
-tag
-bool
Ricardo SIGNES
This software is copyright (c) 2005 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install HTML::Widget::Factory, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::Widget::Factory
CPAN shell
perl -MCPAN -e shell install HTML::Widget::Factory
For more information on module installation, please visit the detailed CPAN module installation guide.