For reference, I can finally report success with AxAddOutputTransformer.
In /etc/apache/httpd.conf:
PerlModule postAxKit AxAddOutputTransformer postAxKit::axcomment
in /usr/lib/perl5/postAxKit.pm
package postAxKit;
#use strict; use warnings; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw(axcomment); our $VERSION="1.0";
sub axcomment {
my $html = shift;
$html =~ s/<!--INSERT DYNAMIC MATERIAL FOR (.*)-->/Comments for $1 HERE/;
return $html;
}
1;
which has the result of replacing my comment of "<!--INSERT DYNAMIC MATERIAL FOR foo.xml-->"
with "Comments for foo.xml".
note that axcomment receives the entire gob of HTML in one go.
phew. not sure why that took so long for me to get working; but it does what I want,
viz tinker with the HTML regardless of whether it comes from cache or is fresh created.
Sebastian
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
