Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Template::Plugin::SSI 0.11

    Download button

    No screenshots available
    Downloads: 278  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Corey Wilson, Mike Kralec and James Tolley | More programs
    GPL / FREE
    April 4th, 2007, 18:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    Template::Plugin::SSI description

    Template::Plugin::SSI is a plugin to use SSI in Template Toolkit (wrapper for CGI::SSI).

    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

      


    TAGS:

    Template Toolkit | CGI::SSI wrapper | Perl module | Template::Plugin::SS | Template | Toolkit

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM