Next
/
Previous
/ What is this about?
/ NMTCC Projects
WebStyler: The TToken object
Each instance of a TToken object represents one of
the tokens (atomic units) that make up a template. It is
basically a shell that holds a pointer to an ``expander'' method
that can be used later to expand this token. Methods:
- T_Token_New() is the constructor.
- T_Token_Expand() is called to expand this token.
Here are the expander methods. Each one writes its expansion
to an output file that is passed to it as an argument. A
Body object is also required, since
the expansion of a token depends on attributes of the body file.
- T_Token_Literal() expands to literal text. This
token type represents all the parts of the template that are
not special WebStyler format codes.
- T_Token_Author() expands the %author; tag.
- T_Token_Body() expands the %body; tag.
- T_Token_Else() expands the %else; tag.
- T_Token_Endif() expands the %endif; tag.
- T_Token_If_Next() expands the %ifNext; tag.
- T_Token_If_Prev() expands the %ifPrev; tag.
- T_Token_If_See() expands the %ifSee; tag.
- T_Token_Next_Title() expands the %nextTitle; tag.
- T_Token_Next_URL() expands the %nextURL; tag.
- T_Token_Prev_Title() expands the %prevTitle; tag.
- T_Token_Prev_URL() expands the %prevURL; tag.
- T_Token_See() expands the %seeAlso; tag.
- T_Token_Title() expands the %title; tag.
- T_Token_URL() expands the %url; tag.
- T_Token_Updated() expands the %updated; tag.
Next: The WebTag object
See also: Internals
Previous: The TmplPool object
Contents:
The WebStyler Homepage
Home:
New Mexico Tech Computer Center
projects documentation
John Shipman, john@nmt.edu
Last updated: 1996/09/29 21:30:15
URL: http://www.nmt.edu/tcc/projects/webstyler/ims_t_token.html