HTML::...hValid(3pm)

πŸ“¦
version 2.07000 Β· 5 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– 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>


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