>>>>> "Johan" == Johan Vromans <[EMAIL PROTECTED]> writes:
Johan> USE dir = Directory(dirpath);
Johan> FOREACH file = dir.files;
Johan> '<img src="' _ file.name _ '">";
Johan> END;
As an aside, you really need:
'<img src="';
file.name | uri | html;
'">';
A file must be URI encoded to get rid of uri-bad chars, then
HTML encoded to prepare it for HTML attribute value insertion.
If you're just showing it in text, it's:
file.name | html;
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[email protected]> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
templates mailing list
[email protected]
http://lists.template-toolkit.org/mailman/listinfo/templates