[Maypole] passing Template configs to View::TT

From: Paul Makepeace (netthink.co.uk at paulm.com)
Date: Thu Oct 07 2004 - 13:34:31 BST


How are folks configuring their Template objects?

    my $template = Template->new({ INCLUDE_PATH => [ $self->paths($r) ]});

E.g. I'm using a copy of M::View::TT with,

        my $template = Template->new({
                %{$r->config->{template_config}}, # new config var
                INCLUDE_PATH => [
                        @{ $r->config->{template_config}{INCLUDE_PATH} },
                        $self->paths($r) ]});

...in lieu of overriding paths() since file layout is still evolving.

Paul

PS I don't need the CC: reply, ta.

-- 
Paul Makepeace .............................. http://paulm.com/inchoate/

"What is the meaning of life? Anything." -- http://paulm.com/toys/surrealism/

_______________________________________________ maypole mailing list maypole at lists.netthink.co.uk http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT