Andy Wardley wrote:
[% USE Directory('/path/to/templates/data');FOREACH datafile IN Directory.files; # change file extension outfile = datafile.replace('\.dat', '.html');
^^^^^^^^^^^^^^^^
Sorry, that should be datafile.name.replace
A
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates
