RE: [Templates] Template::Provider::HTTP under mod_perl

[prev] [thread] [next] [Date index for 2004/10/05]

From: Jason Gottshall
Subject: RE: [Templates] Template::Provider::HTTP under mod_perl
Date: 18:26 on 05 Oct 2004
> No problem, just set absolute:
> my $pageOBJ =3D new Template({
>      LOAD_TEMPLATES =3D> [
>          $prov,
>          $http,
>      ],
>      PREFIX_MAP =3D> {
>          http =3D> 1,
>          default =3D> 0,
>      },
> 	ABSOLUTE =3D> 1 });
>=20
> But that doesn't resolve anything. =20

I think you may need to set ABSOLUTE when you instantiate your provider
class, i.e.:

	my $http =3D Template::Provider::HTTP->new({
		ABSOLUTE =3D> 1,
	});

"ABSOLUTE" may not be the only option for which this is necessary. I had
a similar problem (I can't remember exactly what it was), and I ended up
passing ALL of my config options (except the self-referential ones :-)
to every template object constructer I use, just to be safe. It doesn't
seem to cause any problems...

Jason

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

RE: [Templates] Template::Provider::HTTP under mod_perl
Jason Gottshall 18:26 on 05 Oct 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52