[Templates] Including all files in a directory

andrew3@black1.org.uk andrew3@black1.org.uk
Fri, 28 Jul 2006 12:30:43 +0000


Hi
I am trying to read every file in a directory. The code below is my
attempt but it give file not found.


===============================================
[% USE dir = Directory('announce/') %]
    [% FOREACH file = dir.files %]
      FILE = [% file.name%] 
      [% INCLUDE file %]

    [% END %]