PFT::Text(3)
β¨ 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
- fedora 43: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- fedora 44: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms