Markde...Handler(3pm)
π Markdent::Role::FilterHandler β the perl docs, but make it a group chat π
okay so bestie, welcome to Markde...Handler(3pm), a page from the User Contributed Perl Documentation. Sit down, hydrate, and let's talk about the role that makes handlers β¨filterβ¨.
πΈ NAME πΈ
Markdent::Role::FilterHandler β it's literally a role for handlers that act as filters. That's the whole vibe. π
π¦ VERSION π¦
version 0.40 β no cap, that's the number. π
β¨ DESCRIPTION β¨
So here's the tea, bestie: this role implements the behavior and the interface for filtering handlers. π«Ά
And what does a filter handler even do? Okay so picture this β a filter handler takes events, does something to some of them, and then passes them along to another handler. It's giving middle-manager energy but make it iconic. π
π₯ REQUIRED METHODS π₯
These are not optional, bestie. You need them. Periodt.
$handler->filter_event($event)β okay so this method will always be called with a single object, and that object does theMarkdent::Role::Eventrole. π§
And here's the crucial part, so pay attention π: if this method returns a single event, that event gets passed on to the next handler. But if it does not return an event, then the event is dropped from the stream. Gone. Deleted. Not invited to the afterparty. π
π ATTRIBUTES π
This role provides the following attributes, and yes they're cute:
π handler
- This is a read-only attribute. You cannot change it, bestie, that's the rules. π
- It's an object which does the
Markdent::Role::Handlerrole. π«Ά - This is the handler to which the filter passes events after filtering. So like, filter first, hand-off second. The pipeline is piping. π
π BUGS π
Found a bug? No worries, it happens to the best of us.
See Markdent for bug reporting details β that's where the info lives.
Bugs may be submitted at https://github.com/houseabsolute/Markdent/issues β go forth and file, queen. π
Also! The author is usually active on IRC as 'autarch' on irc://irc.perl.org. So if you wanna slide into the IRC, that's the move. π
π SOURCE π
The source code repository for Markdent can be found at:
https://github.com/houseabsolute/Markdent
Go look at the source, bestie, it's right there. β¨
π AUTHOR π
Dave Rolsky <autarch@urth.org> β the icon, the legend, the one who wrote this. π«Ά
π COPYRIGHT AND LICENSE π
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. Slay. π
The full text of the license can be found in the LICENSE file included with this distribution. It's right there in the box, bestie, read it. π
And that's the whole page, bestie! This lil doc drop is from perl v5.32.1, dated 2021-08-31, and it lives under Markde...Handler(3pm). Take care of yourself, read your licenses, and go filter some events. π¦πβ¨
π¦ where this page comes from
- debian bookworm: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libmarkdent-perl 0.40-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libmarkdent-perl 0.40-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