Apache-SimpleReplace
view release on metacpan or search on metacpan
PerlSetVar TEMPLATE "templates/format1.html"
PerlSetVar REPLACE "the content goes here"
PerlSetVar Filter On
</Location>
Now, a request to http://localhost/someplace/foo.html will insert
the contents of foo.html in place of "the content goes here" in the
format1.html template and pass those results to Apache::SSI
The result is a nice and tidy way to control any custom headers,
footers, background colors, or images in a single html file.
NOTES
As of 0.02, TEMPLATE is no longer relative to the ServerRoot.
REPLACE defaults to "|", though it may be any character or string
you like - metacharacters are disabled in the search, so sorry, no
regex for now...
Verbose debugging is enabled by setting
SimpleReplace.pm view on Meta::CPAN
PerlSetVar TEMPLATE "templates/format1.html"
PerlSetVar REPLACE "the content goes here"
PerlSetVar Filter On
</Location>
Now, a request to http://localhost/someplace/foo.html will insert
the contents of foo.html in place of "the content goes here" in the
format1.html template and pass those results to Apache::SSI
The result is a nice and tidy way to control any custom headers,
footers, background colors, or images in a single html file.
=head1 NOTES
As of 0.02, TEMPLATE is no longer relative to the ServerRoot.
REPLACE defaults to "|", though it may be any character or string
you like - metacharacters are disabled in the search, so sorry, no
regex for now...
Verbose debugging is enabled by setting
( run in 1.724 second using v1.01-cache-2.11-cpan-f56aa216473 )