HTML::...::Role(3pm)

πŸ“¦
version 0.40068 Β· 6 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute

πŸ’… 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)


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