On May 16, 2009, at 17:39, Ralph wrote:

> The tutorial examples seem to assume a one-to-one correspondence  
> between
> template pages and output pages.  What I'm after is being able to  
> use a
> single template page, and a data file, to generate a separate html  
> page
> for each name in the data file.

You need something to "drive" the process.  Make a small perl script  
that generates/fetches the data and then calls the input template for  
each output you need.

(A variation I've used a few times is to make a perl script that in a  
temp directory generates all the input templates and then just use  
ttpage on that to generate the output).


   - ask

-- 
http://develooper.com/ - http://askask.com/



_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to