[Templates] Mispelling?

Damian Nadales damian.only at gmail.com
Sat Dec 29 19:56:54 GMT 2007


In the url

    http://template-toolkit.org/docs/modules/Template/Plugin/Directory.html

I think there's a misspelling in a variable name in the template wich shows a 
directory tree:

[% USE dir = Directory(dirpath) %]
* [% dir.path %]
[% INCLUDE showdir %]

[% BLOCK showdir -%]
  [% FOREACH file = dir.list -%]
    [% IF file.isdir -%]
    * [% file.name %]
      [% file.scan -%]
      [% INCLUDE showdir dir=file FILTER indent(4) -%]
    [% ELSE -%]
    - [% f.name %]
    [% END -%]
  [% END -%]
 [% END %]

Here I think the last f should be file :)

Best regards,
damian.



More information about the templates mailing list