Control Tags
[? TAGS '<* *>' ?] [? TAGS.inline '<% %>' ?] [? TAGS { inline = '<@ @>' comment = off control = off } ?] --EOF--look inside...
- Compile time processing instructions
- Modify or extend language
- Enable/disable features
TAGS
changes tagsCOMMANDS
loads commands
Thus Spake Andy:
The fourth and final kind of tag are control tags. These are like XML's
processing instructions. They're reserved for things that change the way
the scanner/parser work. This includes the TAGS
keyword for changing
tag styles on the fly as it did in TT2. Because we've now got multiple
tags style, the TAGS
control accepts a variety of different options.
The first example changes the default inline
tags (just like TT2). The
second example does the same thing, but being explicit about the tag name.
The third option shows several tags being set at once. on
and off
can
be used to enable/disable tags.
There are also some other new keywords for loading new commands to extend the template language. Although all the other keywords have switched to lower case, I'm keeping the compile time commands in UPPER CASE because I think they deserve to stand out (although I reserve the right to change my mind).