HTML::...hValid(3pm)
π HTML::FormFu::Plugin::StashValid β the HTML::...hValid(3pm) page, bestie edition π
okay so this is a Perl manpage, it lives in the User Contributed Perl Documentation section, and it's about a lil plugin called StashValid. Buckle up, we're getting your valid params onto the form stash. π
β¨ NAME β¨
HTML::FormFu::Plugin::StashValid β literally just here to place valid params on the form stash. That's it. That's the whole job. π
πΈ VERSION πΈ
version 2.07
π¦ SYNOPSIS π¦
First vibe: you're calling it on a form or a block, so you drop this into your config:
# called on a form or block
---
plugins:
- type: StashValid
names: ['field-names']
Second vibe: you're calling it on a single field instead, and the plugin just knows. No names needed:
# called on a field
---
elements:
- name: foo
plugins:
- StashValid
π DESCRIPTION π
So here's the tea β β this thing runs during the post_process in the HTML::FormFu::Plugin hook, which itself gets called during process in HTML::FormFu.
And then the magic: if the named field(s) have a valid value after processing, that value gets placed on the form stash, using the field-name as the stash-key. π«Ά
Like, the field name is the key. That's the whole mapping. Chef's kiss, no notes. β¨
π METHODS π
- Arrayref of field names, whose valid values should be stashed. π
π₯ SEE ALSO π₯
- Is a sub-class of, and inherits methods from
HTML::FormFu::Pluginβ so like, it gets all the family genes, iykyk 𧬠HTML::FormFuβ the main character, the parent of the whole situation π
π AUTHOR π
Carl Franks cfranks@cpan.org
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. (free as in go wild, bestie) π
β AUTHOR (again, yes, for real) β
Carl Franks <cpan@fireartist.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2018 by Carl Franks.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Real talk though β those license terms are not vibes, they're rules. Keep 'em intact, okay? π
And that's the whole page, bestie!! Written up against perl v5.28.1 and dated 2019-01-12 β so yes, it's been slaying since before some of us could read. πβ¨ Thanks for reading, mwah, go stash those valid params π«ΆππΈ
π¦ where this page comes from
- debian bookworm: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libhtml-formfu-perl 2.07000-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms