Description
Text is the base class of all text files (.txt)
Text object has a default attribute "body" but user attributes (RFC822 style) can be defined in the header lines (lines starting with a word followed by ':' and attribute value. Header is ended by an empty line)
Examples
Text file content:Name: Hercules Age: 25 the strongest man on Earth!Using this text file attributes:
<h1 py:sub="text.name>Joe</h1> extract text name attribute from header (i.e. "Hercules") <p py:sub="text.body>blah blah</p> extract text body content (i.e. "The strongest man on Earth!")
Attributes
- body
- text body content (after all headers)
