On Mon, 2003-09-15 at 21:25, Ivan Adzhubey wrote:
> Is there any easy way to configure template processing _from within the
> template itself_ so that the results will go into different file
> (files)?
Use the redirect filter, inside a loop.  The path you give to the
redirect filter is relative to the output path.

[% FOR u IN users %]
  [% FILTER redirect("path/to/${u.name}.html") %]
    <html> yadda yadda </html>
  [% END %]
[% END %]

This _will_ leave you with an empty file from the template itself, but
this is not usually a problem.

 - Alex

-- 
Networking -- only one letter away from not working.


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to