[Templates] Multiple data files, one template

Andrew Black andrew3@black1.org.uk
Sun, 03 Sep 2006 00:53:15 +0100


Hi
I have a number of data files and I want to run them all through the 
same template.
So  a.dat ->  a.html  b.dat ->  b.html  etc.  I want to process all .dat 
files in a particular directory.
The rest of the site uses tpage.

Is there a way of persuading tpage to process this sort of thing, or is 
there scope for a utility to do it

The way I can think of doing this is to to write some Perl to glob the 
filename and call process on each file.  But in doing this I would not 
have access to the ttreerc (as far as can see) so would end up having to 
duplicate info like the LIB location.

Andrew