Templates are a generalization of HTML documents.
In addition to static HTML, a template can contain other instructions. These instructions are interpreted by the interpreter when the document is requested by a Web client, and the client sees not the embedded instructions, but the results of those instructions. The Sambar Server interpreter handles several kinds of embedded instruction. To enable real interaction between a Web client and the Web server, an action at the client must send information to the Web server, and this information must be used by the Sambar Server in generating its response. The Script Sample page contains some basic scripting examples.