HTML::...allback(3pm)
π NAME π
HTML::FormFu::Transformer::Callback β a Callback transformer, bestie. That's the whole vibe. π
Oh and btw, the manual page itself shows up as HTML::...allback(3pm) in the header and footer, that's just how it's filed, don't stress. π¦
β¨ VERSION β¨
version 2.07 β iconic, current, no notes. π
πΈ SYNOPSIS πΈ
okay so here's how you actually use it, look:
$field->transformer('Callback')->callback( \&my_transformer );
---
elements:
- type: Text
name: foo
transformers:
- type: Callback
callback: "main::my_transformer"
two ways to serve the same lewk: hand it a code ref in Perl, or name the sub in your config. slay. π
π DESCRIPTION π
so when your callback gets called, it gets two things handed to it, and you need to know what they are, fr fr:
- first argument = the submitted value for the associated field. like, the actual thing the user typed in. π
- second argument = a hashref of name/value pairs for all the input fields. yes, all of them, the whole roster. π
that's it, that's the tea. π«Ά
π§ METHODS π§
callback
Arguments: \&code-reference
Arguments: "subroutine-name"
so you can pass it either a straight-up code reference (\&code-reference) or just the name of the subroutine as a string ("subroutine-name"). both valid, both cute, pick your fighter. πβ¨
π SEE ALSO π
- Is a sub-class of, and inherits methods from
HTML::FormFu::Transformerβ so all the inherited goodness comes along for free, periodt. HTML::FormFuβ the main character, obviously. π
π 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. π
π AUTHOR π
Carl Franks <cpan@fireartist.com>
(yes bestie, he's listed twice, that's literally what the page says, I don't make the rules π)
π 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. πΈ
okay that's the whole page!! this one's running on perl v5.28.1, dated 2019-01-12, and it's filed under HTML::...allback(3pm) in the User Contributed Perl Documentation. go forth and transform, bestie π¦β¨π
π¦ 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