Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jhthorsen/plack-middleware-ssi

PSGI middleware for server side include content
https://github.com/jhthorsen/plack-middleware-ssi

Last synced: 27 days ago
JSON representation

PSGI middleware for server side include content

Awesome Lists containing this project

README

        

NAME
Plack::Middleware::SSI - PSGI middleware for server side include content

VERSION
0.12

DESCRIPTION
Will try to handle HTML with server side include directives as well as
doing what Plack::Middleware does for "regular files".

SUPPORTED SSI DIRECTIVES
See ,
or
for more details.

set

echo

config

exec

flastmod

fsize

include

SUPPORTED SSI VARIABLES
Standard variables
DATE_GMT, DATE_LOCAL, DOCUMENT_NAME, DOCUMENT_URI, LAST_MODIFIED and
QUERY_STRING_UNESCAPED.

Extended by this module
Any variable defined in Plack $env will be avaiable in the SSI document.
Even so, it is not recommended to use any of those, since it may not be
compatible with Apache and friends.

SYNOPSIS
$app = builder { enable 'SSI'; $app };

See Plack::Middleware for more details.

METHODS
call
Returns a callback which can expand chunks of HTML with SSI directives
to a complete HTML document.

COPYRIGHT & LICENSE
This library is free software. You can redistribute it and/or modify it
under the same terms as Perl itself.

AUTHOR
Jan Henning Thorsen "jhthorsen at cpan.org"