Name : perl-Template-Plugin-AudioFile-Info
| |
Version : 2.0.2
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.39
| Date : 2024-08-05 20:39:27
|
Group : Unspecified
| Source RPM : perl-Template-Plugin-AudioFile-Info-2.0.2-1.39.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : Template Toolkit plugin for
|
Description :
Template::Plugin::AudioFile::Info is intended to be used from with a template that is going to be processed by the Template Toolkit.
A simple template might look like the one in the Synopsis above. In this case you would need to define the \'file\' variable in some way. The simplest option would be to use the \'tpage\' program that comes with the Template Toolkit, like this (assuming the template is in a file called \'song.tt\').
$ tpage --define file=some_song.mp3 song.tt
If you wanted to process each file in a directory thne you might write a Perl program that processed the template multiple times like this.
use Template;
my $tt = Template->new;
foreach (< /my/song/directory/*>) { next unless /\\.(ogg|mp3)$/i;
$tt->process(\'song.tt\', { file => $_ }) or die $tt->error; }
There are, of course, many other ways to do it.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/noarch |