|
![]() |
![]() |
![]() |
2.1. Plain HTML and Active Tags Static plain HTML strings are printed as they are encountered. Depending on the compacting mode of the Spyce interpreter, some whitespace may be eliminated. The Spyce transform module, can also pre-processes this string, if necessary, for example, for compression. The Spyce language supports tag libraries. Once a tag library is imported under some name, mytags, then all static HTML tags of the form <mytags:foo ... > become "active". That is, code from the tag library is executed at that point in the document. Tags can control their output, conditionally skip or loop the execution of their bodies, and can interact with other active tags in the document. Tag libraries and modules (discussed later) can both considerably reduce the amount of code on a Spyce page, and increase code reuse and modularity.
| |||||||||||||||
|