Markde...plexer(3pm)

πŸ“¦
version 0.40 Β· 2 versions
, in debian bookworm, ubuntu jammy, ubuntu noble

πŸ’– Markdent::Handler::Multiplexer β€” bestie edition πŸ’–

okay so this is a page from the User Contributed Perl Documentation section of the manual (section 3pm, perl module territory, iykyk) and it's literally all about a lil class called Markdent::Handler::Multiplexer. she's giving ✨passes events on to multiple handlers✨ energy and honestly? iconic.


🌸 NAME 🌸

Markdent::Handler::Multiplexer β€” she passes events on to multiple handlers. that's it, that's the whole job. no cap. πŸŽ€


πŸ¦‹ VERSION πŸ¦‹

version 0.40 β€” yes bestie, she's on 0.40, keep up πŸ’…


✨ DESCRIPTION ✨

so here's the vibe: this class takes the event stream and passes it on to one or more handlers. plural. multiple. a whole friend group of handlers.

why would you even want that?? because it's handy when you wanna do multiple things with a document at the same time. the example the manpage gives (and it's a good one, periodt) is: generate HTML and capture the events to save for a cache. two things. one document. one pass. slay. πŸ”₯


πŸ’… METHODS πŸ’…

this class provides the following methods, and there's literally one of them, so let's get into it:

🌟 Markdent::Handler::Multiplexer->new( handlers => [ ... ] )

this method creates a new handler. she's fresh out the box. 🎁

you must pass a list of one or more objects which do the Markdent::Role::Handler role as the "handlers" parameters. that's not optional, bestie β€” it's a requirement. one or more. at least one. don't come at her with an empty list fr fr. 🫢


πŸ‘‘ ROLES πŸ‘‘

this class does the Markdent::Role::Handler role. she's a member of the club. she paid her dues. πŸ’–


πŸ’€ BUGS πŸ’€

okay so bug reporting details live over in Markdent β€” go check her out for the full scoop.

bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues> β€” drop it in the issues, bestie, they'll see it. πŸ›

also!! the author is usually active on IRC as 'autarch' on irc://irc.perl.org. so if you wanna vibe check them directly, that's the move. 🌈


🧚 SOURCE 🧚

the source code repository for Markdent can be found at:

<https://github.com/houseabsolute/Markdent>

go look. go read. go be obsessed. πŸ‘‘


πŸ’œ AUTHOR πŸ’œ

Dave Rolsky <autarch@urth.org>

(hi Dave!! thank you for your service 🫑)


this software is copyright (c) 2021 by Dave Rolsky.

this is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. free as in go off, do your thing, no gatekeeping. πŸ’…

the full text of the license can be found in the LICENSE file included with this distribution. read it, it's right there, it's giving responsible adult energy. πŸ“œ


and that's the whole page bestie!! every flag, every role, every URL, every copyright line β€” all present and accounted for. nothing skipped, nothing invented, we keep the facts and serve the vibe. ✨

okay so final sign-off moment 🌸 this was documented under perl v5.32.1, dated 2021-08-31, and the page itself lives in the User Contributed Perl Documentation section. that's the whole footer, folded into a cute lil goodbye instead of a boring old line. mwah. πŸ’‹ πŸ’–πŸ¦‹πŸŽ€

πŸ“¦ where this page comes from