A.13 AxAddOutputTransformer

     

Output transformers are applied just before output is sent to the browser. This directive adds a transformer to the list of transformers to be applied to the output.

 AxAddOutputTransformer MyModule::Transformer 

The transformer is a subroutine that accepts a line to process and returns the transformed line:

 package MyModule; sub Transformer { my $line = shift;  . . .  return $line; } 

You can use an output transformer to add dynamic output (such as the date and time or a customer name ) to a cached page.



XML Publishing with AxKit
XML Publishing with Axkit
ISBN: 0596002165
EAN: 2147483647
Year: 2003
Pages: 109
Authors: Kip Hampton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net