PFT::Text(3)

πŸ“¦ version 1.4.1, in fedora 43, fedora 44

✨ NAME ✨

PFT::Text β€” it's a wrapper around content text, bestie πŸ’– that's literally the whole job description.


🌸 SYNOPSIS 🌸

PFT::Text->new($page);

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so PFT::Text is a semantic wrapper around content text πŸŽ€ like, it doesn't just hold the text, it actually gets what the text means.

It knows how the text should be parsed, and it abstracts away inner data retrieval β€” so you don't have to go digging around inside the data structures yourself. main character behaviour, honestly πŸ‘‘

The constructor expects a Content::Page object as parameter. that's it, that's the vibe.


πŸ’… Properties πŸ’…

🫢 html

Returns the content in HTML form.

The content will retain symbol placeholders ✨ β€” so heads up, it's not the fully finished thing yet. See the html_resolved method if you want the placeholders swapped out for the real deal.

πŸŽ€ symbols

no description here, babe β€” it's just vibing there in the list πŸ¦‹

🌈 html_resolved

Given an ordered list of HTML representation of symbols, this returns the complete HTML with the symbol placeholders replaced. slay πŸ’–

The strings must be ordered consistently with a previously retrieved list of symbols β€” and that list is retrieved with the symbols method. Consistency is the whole game here, fr fr. If your order is off, it's giving chaos 😭

Something like:

$text->html_resolved(map resolve($_), $text->symbols)

Sign-off time, bestie πŸ§šπŸ’œ

This page came to you from perl v5.42.0, dated 2025-07-25, and it lives under the name PFT::Text(3). Consider yourself informed, hydrated, and obsessed πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from