<<

NAME

TmplTokenType.pm - Types of TmplToken objects

DESCRIPTION

This is a Java-style "safe enum" singleton class for types of TmplToken objects. The predefined constants are

TEXT

normal text (#text in the DTD)

TEXT_PARAMETRIZED

parametrized normal text (result of simple recognition of text interspersed with <TMPL_VAR> directives; this has to be explicitly enabled in the scanner)

CDATA

normal text (CDATA in the DTD)

TAG

something that has the form of an HTML tag

DECL

something that has the form of an SGML declaration

PI

something that has the form of an SGML processing instruction

DIRECTIVE

a HTML::Template directive (whether or not embedded in an SGML comment)

COMMENT

something that has the form of an HTML comment (and is not recognized as an HTML::Template directive)

UNKNOWN

something that is not recognized at all by the scanner

Note that end of file is currently represented by undef, instead of a constant predefined by this module.

<<