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

Usage:

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

SSTP-INC includes a file or a portion of a file. Any SSTP tags in this file are parsed automatically.

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.

Unlike SSTP-INC, SSTP-XINC requires a local file for security reasons.

Example:

If file.cgi contained:

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "Hello!!";

The code:

<!--SSTP-XINC file.cgi-->

Would include:

Hello!!