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

0.11

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

See http://httpd.apache.org/docs/2.0/mod/mod_include.html, http://httpd.apache.org/docs/2.0/howto/ssi.html or http://en.wikipedia.org/wiki/Server_Side_Includes for more details.
<!--#set var="SOME_VAR" value="123" -->
<!--#echo var="SOME_VAR" -->
<!--#config timefmt="..." -->
<!--#config errmsg="..." -->
<!--#exec cmd="ls -l" -->
<!--#flastmod virtual="index.html" -->
<!--#fsize file="script.pl" -->
<!--#include virtual="relative/to/root.txt" -->
<!--#include file="/path/to/file/on/disk.txt" -->

DATE_GMT, DATE_LOCAL, DOCUMENT_NAME, DOCUMENT_URI, LAST_MODIFIED and QUERY_STRING_UNESCAPED.
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.

$app = builder { enable 'SSI'; $app };
See Plack::Middleware for more details.

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

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

Jan Henning Thorsen jhthorsen at cpan.org