HTML::...::Role(3pm)
π HTML::...::Role(3pm) β like, the whole vibe
okay so bestie, welcome to HTML::FormHandler::Moose::Role, the little module that adds sugar to roles π (yes, that's literally what it says, "to add sugar to roles" β iconic).
This page lives in the User Contributed Perl Documentation corner of the manual, and its manual name is HTML::...::Role(3pm) β that's the one, that's the header, we're not retyping the whole line, we're just saying hi to it π
β¨ NAME β¨
HTML::FormHandler::Moose::Role β the module whose entire job is adding sugar to roles. no cap. π
πΈ VERSION πΈ
version 0.40068 β that's the one, remember it, there will not be a pop quiz but still π
π¦ SYNOPSIS π¦
This is the whole point, bestie: it enables the use of field specification sugar (has_field) in roles. Use this module instead of use Moose::Role; β like, swap it in, don't use both, it's a substitution situation fr fr π
package MyApp::Form::Foo;
use HTML::FormHandler::Moose::Role;
has_field 'username' => ( type => 'Text', ... );
has_field 'something_else' => ( ... );
no HTML::FormHandler::Moose::Role;
1;
see how the has_field lines just... exist? that's the sugar, that's the magic, that's the whole personality of this module π. and yes, the no HTML::FormHandler::Moose::Role; at the end is doing its thing and the 1; is the traditional true value, don't @ me.
π§ AUTHOR π§
FormHandler Contributors β see HTML::FormHandler for the full cast list π«Ά (iykyk)
π COPYRIGHT 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. so yes, genuinely free, genuinely the Perl 5 terms, no weird strings attached π
lowkey reminder: this manpage is doing exactly what it says on the tin β sugar for roles, nothing extra, no hidden lore π₯
and that's the whole page, bestie π¦ β this was HTML::...::Role(3pm), generated by perl v5.34.0 and dated 2022-03-25, so go forth and put has_field in your roles like the main character you are πβ¨
π¦ where this page comes from
- debian bookworm: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libhtml-formhandler-perl 0.40068-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms