Markde...Stream(3pm)

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

πŸ’– NAME πŸ’–

Markdent::Role::HTMLStream β€” a whole role for handlers that make HTML ✨ it's giving stream of consciousness but make it markup πŸŽ€


🌸 VERSION 🌸

version 0.40 β€” yes bestie, we're on 0.40, iconic, no notes πŸ‘‘


✨ DESCRIPTION ✨

Okay so picture this: you've got events rolling in, and somebody has to turn all that into a stream of HTML. That somebody is this role. πŸ’…

Markdent::Role::HTMLStream does most of the heavy lifting for you β€” it implements basically all the code an event receiver needs to spit out HTML based on the events it gets fed. Like, you show up with events, it hands you back HTML. Obsessed. πŸ¦‹


🫢 REQUIRED METHODS 🫢

Not to be that girl, but this role does have requirements. If you're a consuming class, you gotta bring two methods to the party, no exceptions:

  • $handler->start_document
  • $handler->end_document

That's the vibe check. Pass it or perish. πŸ’€ (kidding, but like, the role genuinely needs both.)


🧚 ROLES 🧚

This role is also serving these two roles, because it contains multitudes:

  • Markdent::Role::EventsAsMethods
  • Markdent::Role::Handler

Main character energy, honestly. 🌈


πŸ’€ BUGS πŸ’€

Found a bug? Say it with your chest β€” head over to Markdent and peep the bug reporting details there. πŸ“’

Bugs may be submitted at <https://github.com/houseabsolute/Markdent/issues>.

Also!! I'm usually lurking on IRC as 'autarch' on irc://irc.perl.org β€” come thru. πŸ™ˆ


⭐ SOURCE ⭐

The source code repository for Markdent lives at <https://github.com/houseabsolute/Markdent>. Go read the source, bestie, it's free and it's right there. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Dave Rolsky <autarch@urth.org> β€” literal legend, we stan. πŸ’œ


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.

The full text of the license can be found in the LICENSE file included with this distribution.

fr fr, read the LICENSE file β€” it's right there in the distribution, it's not gonna read itself πŸ’–

Okay that's the whole page!! Sending you off with the receipts: this was Markde...Stream(3pm) from the User Contributed Perl Documentation, running on perl v5.32.1, dated 2021-08-31. Slay, go build something, ily 🫢✨

πŸ“¦ where this page comes from