[Templates] Including all files in a directory
Sergey Martynoff
sergey@martynoff.info
Fri, 28 Jul 2006 18:12:09 +0400
> 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/') %]
You probably should specify full path to the 'announce' directory or make
sure that you are in the correct working directory. When using the Directory
plugin, paths are specified relative to the current working directory, not
relative to the the directory where template is located!
--
Sergey Martynoff