I am just starting to use TT2 and have read the documentation many times. 
I was wondering if anyone has an idea on this.  Is it possible to run ttree
or perl script with only one template and generate multiple destination
(HTML) files? Or even write a customized perl wrapper script. I think this
would be a very powerful feature, but not sure how this can be implemented.
Please post any ideas. 
thanks. rob

For example, let's say you would like the following to generate a
newyork.html and seatle.html page (not complete, just for basic idea):
This generates 2 different files: newyork.html and seattle.html.
------------------data------------------
[% cities = [
newyork => {office =>'Marketing',Discription=>'Marketing Department', url
=>'marketing.html'}, 
seattle =>{office=>'Headquarters' ,Description=>'Main Corporation Site',
url=>'head.html'}
        ]
%]
---------------------data-------------------
--------------------template---------------
[% FOREACH cities SET >[% cities %].html]
[% INCLUDE header
       title = 'Test Page'
    %]
    [% FOREACH cities %]
    <a href="[% cities.url %]">[% cities.office</a>
    [% END %]
    [% INCLUDE footer %]
[% END %]
-----------------template -------------------



Reply via email to