PFT::Text - Wrapper around content text
PFT::Text->new($page);
Semantic wrapper around content text.
It knows how the text should be parsed, abstracts away inner data retrieval.
The constructor expects a Content::Page object as parameter.
Content::Page
Returns the content in HTML form.
The conetnet will retain symbol placeholders. See the html_resolved method.
html_resolved
Given an ordered list of HTML representation of symbols, returns the complete HTML with symbol placeholders replaced.
The strings must be ordered consistently with a previoulsy retrieved list of symbols (wretrieved with the symbols method.
symbols
Something like:
$text->html_resolved(map resolve($_), $text->symbols)
To install PFT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PFT
CPAN shell
perl -MCPAN -e shell install PFT
For more information on module installation, please visit the detailed CPAN module installation guide.