-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi guys,
I have a problem regarding data defined inside the META tag. For example I have the following at the start of a template file: - ---8<--- [%= META dest = '/etc/motd' user = 'root' group = 'root' mode = 444 revision = '$Id: motd,v 1.4 2009/10/19 11:19:01 hvolker Exp $' descr = 'MOTD file of the system' =%] - ---8<--- I'd like to access this defined data inside of the Perl script after I have processed the template with the following - ---8<--- $template = Template->new({INCLUDE_PATH => '/var/home/hvolker/config-gen-3'}); $template->process ( $proxy_cfg->{'template'}{$config}{'template_file'}, $data, \$result ); - ---8<--- The result of this process is later stored inside a tar file using Archive::Tar and I'd like to use the data from the META section to set filename, user, grp, and mode inside of the tar archive. Anybody any idea how to do that properly? TIA Hendrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (SunOS) iD8DBQFK8Y1RRBWjjpV3ZJQRAh7+AJ9ypk2ejuILl2flR5as+VW2U/dylACgjERw KHlb4ZeO3XquwzpUsz1uKRg= =/vwo -----END PGP SIGNATURE----- _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates