HTML::...llback(3pm)

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

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


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