home
software
resumé
contact
Software: SSTP: Directives: SSTP-INC

Usage:

SSTP-INC filename [tag] [tagnumber] [relativeto]

SSTP-INC includes a file or a portion of a file. This file can be local or remote. A local file will be parsed for SSTP tags before inclusion.

The required filename argument tells which file (relative to the current file, or starting with "/" and relative to the SSTP root) will be included. The optional tag argument includes only the portion of the file between the begin and end tags. The tag should not include the brackets, but can contain the arguments for the tag (they will be stripped off for the end tag). The optional tagnumber argument tells what number tag should be included. For example, if tagnumber is 2, the second time the tag appears in the file the text between it and its close tag will be included. The relativeto parameter tells relative to what file filename will be included.

Example:

If file.thtml contained:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>News</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Hello</p>
</body>
</html>

The code:

<!--SSTP-INC file.thtml body-->

Would include:

<p>Hello</p>