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