
download_tag.wmk - quick links to files for download

< use plugin="download_tag" />

< download file="filename.dat" [text="template"] />

This WebMake Perl library provides a quick shortcut to make links to files for download.
The attributes supported are as follows:
The filename to link to. If a file by this filename does not exist, a warning will be printed.
Filenames should be specified relative to one of the following:
The link text to be used. The following content items are defined for use inside the link text:
The real path to the file.
The path to the file, relative to the current output file.
The file's name, without directories.
The file's modification date, in ctime() format, e.g. Thu Mar 01 20:54:34 2001.
The file's modification date, in UNIX time_t format.
The file's size, in kilobytes (rounded up).
The file's size, in bytes.
The file's owner.
The file's group.
The remaining attributes of the download tag.
template can be, and should often be, a $ {content_reference}. The default template is:
< a href="$ {download.href}" $ {download.tag_attrs}>$ {download.name}
($ {download.size_in_k}k)< /a>
Note that this means that any unrecognised attributes of the download tag itself will become attributes of the A tag.
The default template can be overridden by setting the template content item download.template.

FileSearchPath - WebMake option