Hi.
Sometimes are the template used by more than one person. I would then
like them readable and updateable by users in the same group.
I'd like a chmod option.
maby COMPILE_MODE or something similar
In Template/Document.pm in the write_perl_file sub. I'm not sure of how
the configuration option would best be retriewed from that place. But it
would be something like this addition between the two other returns:
return $class->error($@) if $@;
if ( $mode ) {
chmod $mode, $tmpfile or return $class->error($!);
}
return rename($tmpfile, $file)
|| $class->error($!);
Maby the prefered $mode should be given by _compile() in Template::Provider.
--
/ Jonas - http://jonas.liljegren.org/myself/
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates