RE: [Templates] What permissions are required for compiling?

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

From: Jason Gottshall
Subject: RE: [Templates] What permissions are required for compiling?
Date: 22:59 on 05 Nov 2004
> mkdir tt_c: Permission denied at
> /Library/Perl/5.8.4/darwin-2level/Template/Provider.pm line 398
>=20
> I have:
>=20
> my $tt =3D Template->new({
>   INCLUDE_PATH =3D> 'tt/:lib/',
>  COMPILE_DIR =3D> 'tt_c/',
>  COMPILE_EXT =3D> '.ttc',
> });

You probably don't want TT creating the directory for you. Creating the
directory on the filesystem first, then give TT an absolute path to it.
So, if you want your compiled templates stored in '/mydir/tt_c', use
this:

my $tt =3D Template->new({
	INCLUDE_PATH =3D> 'tt/:lib/',
	COMPILE_DIR =3D> '/mydir/tt_c/',
	COMPILE_EXT =3D> '.ttc',
});

Then the templates that are found under 'tt/' will be stored in
'/mydir/tt_c/tt/', etc.


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

RE: [Templates] What permissions are required for compiling?
Jason Gottshall 22:59 on 05 Nov 2004

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