Name

pkit_output_filter — Filters output generated by PageKit

Synopsis

  sub pkit_output_filter {
    my ($model, $output_ref) = @_;
    if($model->apr->parsed_uri->scheme eq 'https'){
      $$output_ref =~ s(http://images.yourdomain.com/)(https://images.yourdomain.com/)g;
    }
  }
     

Description

Filters the output from the PageKit handler. Should only use when necessary, a better option is to modify the templates directly.

In the example above we filter the image links to that they point to the secure site if we are on a secure page (the only good use of pkit_output_filter that I know of)