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

Usage:

SSTP-VINC filename

SSTP-VINC includes a file.

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-VINC requires a local file for security reasons. In addition, no attempt is made to parse tags. SSTP-VINC should be used sparingly, because it involves extra parsing of the file; if possible, use SSTP-XINC. SSTP-VINC may not work properly if used multiple times in a file, and cannot include only a portion of a file.

Example:

If file.cgi contained:

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

The code:

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

Would include:

Hello!!