HTML::...ontext(3pm)

πŸ’– NAME πŸ’–

HTML::Mason::Plugin::Context β€” the lil' glow-up wrapper that holds onto all the args passed to plugin methods ✨

Okay so real talk, this page is from the User Contributed Perl Documentation corner of the manual-verse, and its whole job is to introduce HTML::Mason::Plugin::Context β€” yes bestie, that whole HTML::...ontext(3pm) thing in the header is just the terminal being dramatic and truncating the name πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

This file is where the minimalist context classes live. They get instantiated every single time a plugin hook fires β€” like, every time, no skips πŸŽ€ If you wanna know the tea about plugins themselves, go read HTML::Mason::Plugin, that's the main character of that storyline πŸ‘‘

Not me telling you these objects are minimalist β€” because fr fr, they are. For efficiency, these objects have no new() method. None. Zero. Nada. They're not constructed the polite way at all πŸ™ˆ

Instead, they get created and blessed by hand inside HTML::Mason::Request, right before they're used. Hand-blessed. Artisanal. Small-batch. It's giving cottage-core object construction 🧚


and that's the whole page, bestie β€” short, sweet, and slaying πŸŒˆπŸ’œ

perl v5.38.2 Β· 2024-03-05 β€” mwah, kisses, go read HTML::Mason::Plugin next πŸ«ΆπŸ’–

πŸ“¦ where this page comes from