HTML::...llback(3pm)
π HTML::FormFu::Inflator::Callback π
okay bestie, gather round, because we're talking about HTML::FormFu::Inflator::Callback β yes that's the whole name, it's a whole vibe, it's the Callback inflator and she is serving β¨
version 2.07 π (she's been around, she's got lore, we respect her)
πΈ SYNOPSIS πΈ
here's the moment you've been waiting for, the code, the drama, the syntax:
$field->inflator('Callback')->callback( \&my_callback );
and if YAML is more your thing (it's giving config-file main character energy), you can do it like this:
---
elements:
- type: Text
name: foo
inflators:
- type: Callback
callback: "main::my_inflator"
like. look at that. so clean. so organized. she ATE π
π¦ DESCRIPTION π¦
so what is this? it's the Callback inflator. that's it. that's the description. the original said it in three words and honestly? iconic minimalism. no notes. π
(translation for the besties: it's an inflator that calls a callback. the name literally tells you everything. slay.)
β¨ METHODS β¨
π callback
this is the one method, the whole moment, the star of the show π
Arguments: \&code-reference
Arguments: "subroutine-name"
so yeah β you hand her a code reference (that's the \& thing, a reference to a sub, iykyk) OR you hand her a plain string with the name of a subroutine, like "main::my_inflator" up there in the synopsis. either one. both work. she's flexible like that. π«Ά
no cap: those are literally the two argument forms listed. a code ref, or a subroutine name string. that's the menu. π
π SEE ALSO π
- she's a sub-class of, and inherits methods from
HTML::FormFu::Inflatorβ so like, all the family traits come from there, go check her parent π HTML::FormFu::FormFuβ the big one, the whole framework, the mothership πΈ
π AUTHOR π
Carl Franks cfranks@cpan.org
and also, further down, because the manpage lists him twice (king behavior honestly):
Carl Franks <cpan@fireartist.com>
π LICENSE π
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
(translation: go wild, remix it, redistribute it, it's free, we love that for you β¨)
π 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 lil doc came to you courtesy of the User Contributed Perl Documentation crew, running on perl v5.28.1, dated 2019-01-12 β yeah she's got a timestamp, she's vintage, she's timeless, she's the HTML::FormFu::Inflator::Callback page π
πΈπ
mwah. go inflate something. π¦
π¦ 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