If I create a filter for HT do I have to pass it in a certain way?

sub doc_filter {
    my $text_ref = shift;

    $$text_ref =~ s|<doc>.*?</doc>||gx;
}

I thought I was supposed to pass it here:

my $tpl = $self->load_tmpl( 'home.tpl', filter => \&doc_filter );

But that doesn't seem to have done the trick...

Robert


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/cgiapp@lists.erlbaum.net/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to