Template::Plugin::SSI is a plugin to use SSI in Template Toolkit (wrapper for CGI::SSI).
SYNOPSIS
[% USE SSI %]
# virtual include of the file /foo/bar.inc.html
[% SSI.include('virtual', '/foo/bar.inc.html') %]
# file include of the file /foo/bar.inc.html
[% SSI.include('file', '/var/www/html/foo/bar.inc.html') %]
# execute a command
[% SSI.exec('cmd', 'ls') %]
# execute a cgi script
[% SSI.exec('cgi', '/cgi-bin/foo.cgi') %]
# set a config variable ('sizefmt', 'timefmt', or 'errmsg')
[% SSI.config('timefmt', "%Y") %]
# echo a set or environment variable
# Environment Variable Examples:
# DOCUMENT_URI - the URI of this document
# DOCUMENT_NAME - the name of the current document
# DATE_GMT - the same as 'gmtime'
# DATE_LOCAL - the same as 'localtime'
# FLASTMOD - the last time this script was modified
[% SSI.echo('DATE_LOCAL') %]
# set a local variable ($name = 'Corey')
[% SSI.set('name', 'Corey') %]
# print when 'index.html' was last modified
[% SSI.flastmod('file', 'index.html') %]
# print the file size of 'index.html'
[% SSI.fsize('file', 'index.html') %]
A Template Toolkit Plugin that provides an easy way to include Apache's SSI within a template. (acts as a wrapper to CGI::SSI)
The plugin can be loaded via the familiar USE directive.
[% USE SSI %]
This creates a plugin object with the name of 'SSI'.
Product's homepage
Requirements:
· Perl