HTML::...Plugin(3pm)
π HTML::...Plugin π
okay bestie, so this is HTML::FormFu::Plugin, a User Contributed Perl Documentation page, and it's literally the blueprint for building plugins. Think of it as the β¨base classβ¨ energy β the blueprint every plugin inherits from. π
β¨ NAME β¨
HTML::FormFu::Plugin β it's the base class for plugins, no cap. π«Ά
πΈ VERSION πΈ
version 2.07 β that's the one, periodt.
π DESCRIPTION π
So here's the tea: plugins are little add-ons you can slap onto a form or onto any element to modify how they behave. That's the whole vibe. π¦
But listen β some plugins are designed to only go on a form, and some are designed to only go on an element. It's giving "know your audience". Depending on how the plugin was built, it belongs in one spot, not the other. π
π METHODS π
Plugins get to override any of the following method stubs. These are your little hooks, bestie β fill 'em in and do your thing. π
β process β
okay so, real talk: only plugins that were added to a form, or to a field element that inherits from HTML::FormFu::Role::Element::Field, will actually have their process method run. Everyone else? Nothing. Silent. π
- For form plugins, it's called during
processin HTML::FormFu, and that happens beforeprocessgets called on any of the elements. - For field plugins, it's called during the field's own
processcall.
β pre_process β
- For form plugins, this fires immediately after
pre_processhas been run on the elements. - For element plugins, this fires before
pre_processis run on form plugins.
β post_process β
- For form plugins, this fires immediately before
processin HTML::FormFu returns. - For element plugins, this fires before
post_processis run on form plugins.
β render β
Only plugins that were added to a form will have their render method run. Element plugins? Not invited to this one. π
It's called during render in HTML::FormFu, before the render_method in HTML::FormFu gets called.
β post_render β
Again β only plugins added to a form will have their post_render method run.
It's called during render in HTML::FormFu, immediately before render in HTML::FormFu returns.
And guess what, it gets passed a reference to the return value of render_method in HTML::FormFu. Iconic behaviour, honestly. π
π CORE PLUGINS π
The one and only core plugin on the roster:
HTML::FormFu::Plugin::StashValid
π AUTHOR π
Carl Franks, cfranks@cpan.org β thank you for your service, king. π
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself. slay. β¨
π AUTHOR π
Carl Franks <cpan@fireartist.com> β yes bestie, he's listed twice, it's a whole moment.
π 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.
and that's the whole page, bestie β this was generated from perl v5.28.1, dated 2019-01-12, for HTML::...Plugin(3pm). go forth and write plugins, you absolute main character. π¦πβ¨
π¦ 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