Assets directories are directories that contain assets, fixed (static) materials that are not to be processed by Template, but always copied 'as is'. Common use is for static images, icons, documentation files, videos and so on.
The PR adds the keyword assets and corresponding command line option --assets that can be used to name a directory that contains assets. This directory must reside directly under the top of the source tree. Multiple directories can be specified by repeating the keyword or command line option.
When asset directories are specified, all files in these directories are copied with two exceptions:
filenames that match any of the ignore patterns are ignored
filenames that match any of the link patterns are linked
Note that suffix mapping still applies. I'm not sure if this is desired.
This PR implements assets directories in ttree.
Assets directories are directories that contain assets, fixed (static) materials that are not to be processed by Template, but always copied 'as is'. Common use is for static images, icons, documentation files, videos and so on.
The PR adds the keyword
assets
and corresponding command line option--assets
that can be used to name a directory that contains assets. This directory must reside directly under the top of the source tree. Multiple directories can be specified by repeating the keyword or command line option.When asset directories are specified, all files in these directories are copied with two exceptions:
ignore
patterns are ignoredlink
patterns are linkedNote that suffix mapping still applies. I'm not sure if this is desired.