NAME

tr_staticssi -- expand SSI directives #include virtual and #exec cmd

SYNOPSIS

tr_staticssi[-h] -d doc-root-directory file.shtml

DESCRIPTION

tr_staticssi reads a file below doc-root-directory and expands SSI directives (#include virtual and #exec cmd). Nested directives up to level 3 are supported. The expanded document is printed to stdout.

This program sets the environment variables DOCUMENT_URI, REQUEST_URI, DOCUMENT_NAME.

The SSI must look like this:

<!--#include virtual="filename" -->

<!--#exec cmd="command" -->

The program is useful if you want to generate static html pages from dynamic html.

OPTIONS

-h short help

-d the path to webserver document root directory

EXAMPLE

cd /home/httpd/html

tr_staticssi -d /home/httpd/html index.shtml

This will expand include and exec directives in index.shtml.

AUTHOR

tr_staticssi is part of the HTML::TagReader package and was written by Guido Socher [guido(at)linuxfocus.org]